Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref: Disable incoming HTTP request instrumentation #13918

Merged

Conversation

lforst
Copy link
Member

@lforst lforst commented Oct 9, 2024

Disables the instrumentation for incoming HTTP requests to be consistent across Next.js versions for instrumentation.

Next 13 and 15 work with the HTTP instrumentation. 14 doesn't.

@lforst lforst requested a review from chargome October 9, 2024 12:35
@@ -56,7 +56,7 @@ test('Should record exceptions and transactions for faulty route handlers', asyn

expect(routehandlerTransaction.contexts?.trace?.status).toBe('internal_error');
expect(routehandlerTransaction.contexts?.trace?.op).toBe('http.server');
expect(routehandlerTransaction.contexts?.trace?.origin).toContain('auto.http.otel.http');
expect(routehandlerTransaction.contexts?.trace?.origin).toContain('auto');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test keeps coming back 😄

Copy link
Contributor

github-actions bot commented Oct 9, 2024

size-limit report 📦

Path Size % Change Change
@sentry/browser 22.73 KB added added
@sentry/browser - with treeshaking flags 21.53 KB added added
@sentry/browser (incl. Tracing) 34.97 KB added added
@sentry/browser (incl. Tracing, Replay) 71.54 KB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 61.94 KB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 75.87 KB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 88.64 KB added added
@sentry/browser (incl. Tracing, Replay, Feedback, metrics) 90.5 KB added added
@sentry/browser (incl. metrics) 27 KB added added
@sentry/browser (incl. Feedback) 39.87 KB added added
@sentry/browser (incl. sendFeedback) 27.38 KB added added
@sentry/browser (incl. FeedbackAsync) 32.17 KB added added
@sentry/react 25.49 KB added added
@sentry/react (incl. Tracing) 37.94 KB added added
@sentry/vue 26.9 KB added added
@sentry/vue (incl. Tracing) 36.86 KB added added
@sentry/svelte 22.87 KB added added
CDN Bundle 24.05 KB added added
CDN Bundle (incl. Tracing) 36.76 KB added added
CDN Bundle (incl. Tracing, Replay) 71.29 KB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 76.6 KB added added
CDN Bundle - uncompressed 70.53 KB added added
CDN Bundle (incl. Tracing) - uncompressed 109.04 KB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 221.13 KB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 234.34 KB added added
@sentry/nextjs (client) 37.91 KB added added
@sentry/sveltekit (client) 35.56 KB added added
@sentry/node 124.36 KB added added
@sentry/node - without tracing 93.45 KB added added
@sentry/aws-serverless 103.14 KB added added

Copy link

codecov bot commented Oct 9, 2024

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
228 1 227 14
View the top 1 failed tests by shortest run time
client-app-routing-instrumentation.test.ts Creates a navigation transaction for app router routes
Stack Traces | 30s run time
client-app-routing-instrumentation.test.ts:19:5 Creates a navigation transaction for app router routes

To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard

}
}

// Next.js 13 is not correctly picking up tracing data for trace propagation so we use a back-fill strategy
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the worst thing I have done all week.

@lforst lforst merged commit c00594a into lforst-nextjs-otel Oct 9, 2024
109 of 113 checks passed
@lforst lforst deleted the lforst-nextjs-disable-incoming-http-integration branch October 9, 2024 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants