Skip to content

Commit ba6e299

Browse files
author
Luca Forstner
committed
Update nextjs origins
1 parent caa0936 commit ba6e299

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

packages/nextjs/src/client/performance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export function nextRouterInstrumentation(
178178
const nextRouteChangeSpan = navigationTransaction.startChild({
179179
op: 'ui.nextjs.route-change',
180180
description: 'Next.js Route Change',
181-
origin: 'auto.ui.nextjs',
181+
origin: 'auto.navigation.nextjs',
182182
});
183183

184184
const finishRouteChangeSpan = (): void => {

packages/nextjs/src/common/utils/edgeWrapperUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function withEdgeWrapping<H extends EdgeRouteHandler>(
2323
span = prevSpan.startChild({
2424
description: options.spanDescription,
2525
op: options.spanOp,
26-
origin: 'auto.ui.nextjs.withEdgeWrapping',
26+
origin: 'auto.function.nextjs',
2727
});
2828
} else if (req instanceof Request) {
2929
const sentryTrace = req.headers.get('sentry-trace') || '';

packages/nextjs/src/common/utils/wrapperUtils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export function withTracedServerSideDataFetcher<F extends (...args: any[]) => Pr
104104
{
105105
op: 'http.server',
106106
name: options.requestedRouteName,
107-
origin: 'auto.http.nextjs.withTracedServerSideDataFetcher',
107+
origin: 'auto.function.nextjs',
108108
...traceparentData,
109109
status: 'ok',
110110
metadata: {
@@ -132,14 +132,14 @@ export function withTracedServerSideDataFetcher<F extends (...args: any[]) => Pr
132132
dataFetcherSpan = spanToContinue.startChild({
133133
op: 'function.nextjs',
134134
description: `${options.dataFetchingMethodName} (${options.dataFetcherRouteName})`,
135-
origin: 'auto.ui.nextjs.withTracedServerSideDataFetcher',
135+
origin: 'auto.function.nextjs',
136136
status: 'ok',
137137
});
138138
} else {
139139
dataFetcherSpan = startTransaction({
140140
op: 'function.nextjs',
141141
name: `${options.dataFetchingMethodName} (${options.dataFetcherRouteName})`,
142-
origin: 'auto.ui.nextjs.withTracedServerSideDataFetcher',
142+
origin: 'auto.function.nextjs',
143143
...traceparentData,
144144
status: 'ok',
145145
metadata: {
@@ -206,7 +206,7 @@ export async function callDataFetcherTraced<F extends (...args: any[]) => Promis
206206
// route's transaction
207207
const span = transaction.startChild({
208208
op: 'function.nextjs',
209-
origin: 'auto.ui.nextjs.callDataFetcherTraced',
209+
origin: 'auto.function.nextjs',
210210
description: `${dataFetchingMethodName} (${parameterizedRoute})`,
211211
status: 'ok',
212212
});

packages/nextjs/src/common/wrapApiHandlerWithSentry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export function withSentry(apiHandler: NextApiHandler, parameterizedRoute?: stri
113113
{
114114
name: `${reqMethod}${reqPath}`,
115115
op: 'http.server',
116-
origin: 'auto.http.nextjs.wrapApiHandlerWithSentry',
116+
origin: 'auto.http.nextjs',
117117
...traceparentData,
118118
metadata: {
119119
dynamicSamplingContext: traceparentData && !dynamicSamplingContext ? {} : dynamicSamplingContext,

packages/nextjs/src/common/wrapServerComponentWithSentry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function wrapServerComponentWithSentry<F extends (...args: any[]) => any>
4343
op: 'function.nextjs',
4444
name: `${componentType} Server Component (${componentRoute})`,
4545
status: 'ok',
46-
origin: 'auto.http.nextjs.wrapServerComponentWithSentry',
46+
origin: 'auto.function.nextjs',
4747
...traceparentData,
4848
metadata: {
4949
source: 'component',

packages/nextjs/test/config/withSentry.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ describe('withSentry', () => {
8080
{
8181
name: 'GET http://dogs.are.great',
8282
op: 'http.server',
83-
origin: 'auto.http.nextjs.wrapApiHandlerWithSentry',
83+
origin: 'auto.http.nextjs',
8484

8585
metadata: {
8686
source: 'route',

0 commit comments

Comments
 (0)