Skip to content

ref(nextjs): Set propagation context for tracing#8426

Merged
AbhiPrasad merged 5 commits intodevelopfrom
abhi-twp-nextjs
Jun 30, 2023
Merged

ref(nextjs): Set propagation context for tracing#8426
AbhiPrasad merged 5 commits intodevelopfrom
abhi-twp-nextjs

Conversation

@AbhiPrasad
Copy link
Copy Markdown
Contributor

ref #8352

start using tracingContextFromHeaders (first used in #8422) to simplify how trace context is generated in server and client-side nextjs. Then set the propagation context accordingly.

@AbhiPrasad AbhiPrasad requested review from a team, lforst and stephanie-anderson and removed request for a team June 29, 2023 16:28
@AbhiPrasad AbhiPrasad self-assigned this Jun 29, 2023
Base automatically changed from abhi-twp-node-env to develop June 29, 2023 16:37
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jun 29, 2023

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 21.78 KB (0%)
@sentry/browser - ES5 CDN Bundle (minified) 68.44 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 20.08 KB (+0.01% 🔺)
@sentry/browser - ES6 CDN Bundle (minified) 59.72 KB (0%)
@sentry/browser - Webpack (gzipped + minified) 21.69 KB (0%)
@sentry/browser - Webpack (minified) 70.83 KB (0%)
@sentry/react - Webpack (gzipped + minified) 21.72 KB (0%)
@sentry/nextjs Client - Webpack (gzipped + minified) 50.27 KB (+0.35% 🔺)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 29.77 KB (+0.44% 🔺)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 27.83 KB (+0.42% 🔺)
@sentry/replay ES6 CDN Bundle (gzipped + minified) 49.43 KB (+0.01% 🔺)
@sentry/replay - Webpack (gzipped + minified) 43.12 KB (0%)
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 69.22 KB (+0.22% 🔺)
@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 61.65 KB (+0.01% 🔺)

nextDataTagInfo.traceParentData = traceparentData;
}

getCurrentHub().getScope().setPropagationContext(propagationContext);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

m: Since this function is currently pure i would move this into nextRouterInstrumentation directly.

@AbhiPrasad AbhiPrasad enabled auto-merge (squash) June 30, 2023 14:40
@AbhiPrasad AbhiPrasad merged commit cf8c072 into develop Jun 30, 2023
@AbhiPrasad AbhiPrasad deleted the abhi-twp-nextjs branch June 30, 2023 15:17
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