You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
continueTrace doesn't propagate given trace ID (@sentry/cloudflare) #18296
asyncfunctionexample(sentryContext){// Restore trace context and wrap executionconsole.log('Trace ID before continueTrace',sentryContext.trace);returnawaitSentry.continueTrace({sentryTrace: sentryContext.trace,baggage: sentryContext.baggage,},async()=>{console.log('Trace ID after continueTrace',Sentry.getTraceData()['sentry-trace']);});}
Steps to Reproduce
Use the code above.
Expected Result
Trade ID before/after should be the same.
Actual Result
Trace ID before continueTrace 60069cc1ad20efb49eed40a7f47f1b8f-932954b3a43dbd9f-1
Trace ID after continueTrace 6dfe5f15e9e14d8f9087a315b3cf6fda-8fe9055201ea5a4d-1
Additional Context
This could be a limitation of the Cloudflare Workers environment, but I can't seem to get Sentry.continueTrace to work this way.
The background is I have a worker invocation with a trace already, and I'm trying to override that inside of continueTrace.
Priority
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.
Hey @benvinegar, thanks for writing in! Just to let you know we were able to reproduce this locally and are currently looking into possible fixes, will keep you posted.
Activity
linear commentedon Nov 24, 2025
JS-1204
nicohrubec commentedon Nov 24, 2025
Hey @benvinegar, thanks for writing in! Just to let you know we were able to reproduce this locally and are currently looking into possible fixes, will keep you posted.
fix(core): continueTrace doesn't propagate given trace ID if active s…
nicohrubec commentedon Nov 27, 2025
Hey @benvinegar, just merged a PR that should resolve this issue. Will go out with the next release!
benvinegar commentedon Nov 30, 2025
@nicohrubec Thanks!
github-actions commentedon Dec 2, 2025
A PR closing this issue has just been released 🚀
This issue was referenced by PR #18328, which was included in the 10.28.0 release.