Skip to content

Commit c9467c5

Browse files
author
Luca Forstner
committed
Change op to make clear that we wrap data fetching methods
1 parent ea0e7b2 commit c9467c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/nextjs/src/config/wrappers/wrapperUtils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export function callTracedServerSideDataFetcher<F extends (...args: any[]) => Pr
8484
// TODO: Extract trace data from `req` object (trace and baggage headers) and attach it to transaction
8585

8686
const newTransaction = startTransaction({
87-
op: 'nextjs.data',
87+
op: 'nextjs.data.server',
8888
name: options.requestedRouteName,
8989
metadata: {
9090
source: 'route',
@@ -97,7 +97,7 @@ export function callTracedServerSideDataFetcher<F extends (...args: any[]) => Pr
9797
}
9898

9999
const dataFetcherSpan = requestTransaction.startChild({
100-
op: 'nextjs.data',
100+
op: 'nextjs.data.server',
101101
description: `${options.dataFetchingMethodName} (${options.dataFetcherRouteName})`,
102102
});
103103

@@ -149,7 +149,7 @@ export async function callDataFetcherTraced<F extends (...args: any[]) => Promis
149149
// Capture the route, since pre-loading, revalidation, etc might mean that this span may happen during another
150150
// route's transaction
151151
const span = transaction.startChild({
152-
op: 'nextjs.data',
152+
op: 'nextjs.data.server',
153153
description: `${dataFetchingMethodName} (${parameterizedRoute})`,
154154
});
155155

0 commit comments

Comments
 (0)