Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f5ae12f

Browse files
committed
snake_case
1 parent d6bead8 commit f5ae12f

File tree

18 files changed

+23
-23
lines changed

18 files changed

+23
-23
lines changed

‎dev-packages/e2e-tests/test-applications/nextjs-13/tests/server/pages-router-api-endpoints.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ test('Should report an error event for errors thrown in pages router api routes'
3030
function: 'withSentry',
3131
},
3232
handled: false,
33-
type: 'auto.http.nextjs.apiHandler',
33+
type: 'auto.http.nextjs.api_handler',
3434
},
3535
stacktrace: { frames: expect.arrayContaining([]) },
3636
type: 'Error',

‎dev-packages/e2e-tests/test-applications/nextjs-13/tests/server/server-component-error.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ test('Should capture an error thrown in a server component', async ({ page }) =>
2020
exception: {
2121
values: [
2222
{
23-
mechanism: { handled: false, type: 'auto.function.nextjs.serverComponent' },
23+
mechanism: { handled: false, type: 'auto.function.nextjs.server_component' },
2424
type: 'Error',
2525
value: 'RSC error',
2626
},

‎dev-packages/e2e-tests/test-applications/nextjs-15/tests/nested-rsc-error.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ test('Should capture errors from nested server components when `Sentry.captureRe
4444

4545
expect(errorEvent.exception?.values?.[0]?.mechanism).toEqual({
4646
handled: false,
47-
type: 'auto.function.nextjs.onRequestError',
47+
type: 'auto.function.nextjs.on_request_error',
4848
});
4949
});

‎dev-packages/e2e-tests/test-applications/nextjs-15/tests/streaming-rsc-error.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ test('Should capture errors for crashing streaming promises in server components
4444

4545
expect(errorEvent.exception?.values?.[0]?.mechanism).toEqual({
4646
handled: false,
47-
type: 'auto.function.nextjs.onRequestError',
47+
type: 'auto.function.nextjs.on_request_error',
4848
});
4949
});

‎dev-packages/e2e-tests/test-applications/nextjs-app-dir/tests/edge.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ test('Should record exceptions for faulty edge server components', async ({ page
2222

2323
expect(errorEvent.exception?.values?.[0]?.mechanism).toEqual({
2424
handled: false,
25-
type: 'auto.function.nextjs.serverComponent',
25+
type: 'auto.function.nextjs.server_component',
2626
});
2727
});
2828

‎dev-packages/e2e-tests/test-applications/nextjs-pages-dir/tests/pages-ssr-errors.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ test('Will capture error for SSR rendering error with a connected trace (Functio
4646

4747
expect(errorEvent.exception?.values?.[0]?.mechanism).toEqual({
4848
handled: false,
49-
type: 'auto.function.nextjs.pageFunction',
49+
type: 'auto.function.nextjs.page_function',
5050
});
5151
});

‎dev-packages/e2e-tests/test-applications/nextjs-turbo/tests/app-router/rsc-error.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ test('Should capture errors from server components', async ({ page }) => {
1313
expect(errorEvent).toBeDefined();
1414
expect(errorEvent.exception?.values?.[0]?.mechanism).toEqual({
1515
handled: false,
16-
type: 'auto.function.nextjs.onRequestError',
16+
type: 'auto.function.nextjs.on_request_error',
1717
});
1818
});

‎packages/nextjs/src/common/captureRequestError.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function captureRequestError(error: unknown, request: RequestInfo, errorC
3838
captureException(error, {
3939
mechanism: {
4040
handled: false,
41-
type: 'auto.function.nextjs.onRequestError',
41+
type: 'auto.function.nextjs.on_request_error',
4242
},
4343
});
4444

‎packages/nextjs/src/common/pages-router-instrumentation/_error.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export async function captureUnderscoreErrorException(contextOrProps: ContextOrP
4545
// is what passing a string to `captureException` will wind up doing)
4646
captureException(err || `_error.js called with falsy error (${err})`, {
4747
mechanism: {
48-
type: 'auto.function.nextjs.underscoreError',
48+
type: 'auto.function.nextjs.underscore_error',
4949
handled: false,
5050
data: {
5151
function: '_error.getInitialProps',

‎packages/nextjs/src/common/pages-router-instrumentation/wrapApiHandlerWithSentry.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export function wrapApiHandlerWithSentry(apiHandler: NextApiHandler, parameteriz
112112

113113
captureException(objectifiedErr, {
114114
mechanism: {
115-
type: 'auto.http.nextjs.apiHandler',
115+
type: 'auto.http.nextjs.api_handler',
116116
handled: false,
117117
data: {
118118
wrapped_handler: wrappingTarget.name,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /