Skip to content

Commit 6ed57f6

Browse files
committed
Change op to make clear that we wrap data fetching methods
1 parent 150843f commit 6ed57f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

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

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

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

@@ -159,7 +159,7 @@ export async function callDataFetcherTraced<F extends (...args: any[]) => Promis
159159
// Capture the route, since pre-loading, revalidation, etc might mean that this span may happen during another
160160
// route's transaction
161161
const span = transaction.startChild({
162-
op: 'nextjs.data',
162+
op: 'nextjs.data.server',
163163
description: `${dataFetchingMethodName} (${parameterizedRoute})`,
164164
});
165165

0 commit comments

Comments
 (0)