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

test(nextjs): Test pages router API routes incoming trace propagation #14818

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

lforst
Copy link
Member

@lforst lforst commented Dec 20, 2024

Add regression test for trace propagation in Next.js pages router api routes as fixed in #14813.

Copy link
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 23.16 KB added added
@sentry/browser - with treeshaking flags 21.83 KB added added
@sentry/browser (incl. Tracing) 35.66 KB added added
@sentry/browser (incl. Tracing, Replay) 72.91 KB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 63.31 KB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 77.32 KB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 89.71 KB added added
@sentry/browser (incl. Feedback) 39.91 KB added added
@sentry/browser (incl. sendFeedback) 27.77 KB added added
@sentry/browser (incl. FeedbackAsync) 32.53 KB added added
@sentry/react 25.88 KB added added
@sentry/react (incl. Tracing) 38.51 KB added added
@sentry/vue 27.38 KB added added
@sentry/vue (incl. Tracing) 37.51 KB added added
@sentry/svelte 23.31 KB added added
CDN Bundle 24.26 KB added added
CDN Bundle (incl. Tracing) 35.81 KB added added
CDN Bundle (incl. Tracing, Replay) 70.92 KB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 76.21 KB added added
CDN Bundle - uncompressed 71.32 KB added added
CDN Bundle (incl. Tracing) - uncompressed 106.78 KB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 220.85 KB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 234.05 KB added added
@sentry/nextjs (client) 38.79 KB added added
@sentry/sveltekit (client) 36.18 KB added added
@sentry/node 158.03 KB added added
@sentry/node - without tracing 98.93 KB added added
@sentry/aws-serverless 126.65 KB added added

Copy link

codecov bot commented Dec 20, 2024

❌ 2 Tests Failed:

Tests completed Failed Passed Skipped
251 2 249 9
View the top 2 failed tests by shortest run time
pages-api-handler-trace-propagation.test.ts Should create a transaction that has the same trace ID as the incoming request
Stack Traces | 0.092s run time
pages-api-handler-trace-propagation.test.ts:4:5 Should create a transaction that has the same trace ID as the incoming request
transactions.test.ts Should send a wrapped server action as a child of a nextjs transaction
Stack Traces | 0.248s run time
transactions.test.ts:79:5 Should send a wrapped server action as a child of a nextjs transaction

To view more test analytics, go to the Test Analytics Dashboard
📢 Thoughts on this report? Let us know!

@mydea mydea force-pushed the fn/continueTraceACS branch from b3ce32e to 0b5edbd Compare December 20, 2024 12:41
Base automatically changed from fn/continueTraceACS to develop December 20, 2024 13:25
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