Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/cloudflare - hono
SDK Version
10.28.0
Framework Version
No response
Link to Sentry event
No response
Reproduction Example/SDK Setup
I have my hono app wrapped within Sentry.withSentry with tracesSampleRate set to 1.
I also have the below code in the handler wrapped inside withSentry
constsentryTrace=request.headers.get('sentry-trace')??undefined;constbaggage=request.headers.get('baggage')??undefined;returnSentry.continueTrace({ sentryTrace, baggage },async()=>{// All spans created inside here should use the incoming trace contextconstresponse=(awaitapp!.fetch(requestasunknownasRequest,env,ctx,))asunknownasCloudflareResponse;returnresponse;});Steps to Reproduce
- Setup hono app using
withSentry - Setup
continueTrace using the headers baggage and sentry-trace forwarded by the client - Attempt a request from client to hono backend deployed on cloudflare
Expected Result
Expecting a distributed trace that shows the entire timeline from client to backend and back.
Actual Result
Earlier on 10.11.0, I had withSentry without continueTrace. While enabling distributed tracing using continueTrace, found this issue. Thus, installed the latest version 10.28.0 which has a fix for it.
Check the below screenshot
- Highlighted in green box is tracing on
10.11.0 without continueTrace - Highlighted in red box is tracing on
10.28.0 with continueTrace, which splits up the trace into multiple 1 for every span.

Additional Context
No response
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.
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/cloudflare - hono
SDK Version
10.28.0
Framework Version
No response
Link to Sentry event
No response
Reproduction Example/SDK Setup
I have my hono app wrapped within
Sentry.withSentrywithtracesSampleRateset to 1.I also have the below code in the handler wrapped inside
withSentrySteps to Reproduce
withSentrycontinueTraceusing the headersbaggageandsentry-traceforwarded by the clientExpected Result
Expecting a distributed trace that shows the entire timeline from client to backend and back.
Actual Result
Earlier on 10.11.0, I had
withSentrywithoutcontinueTrace. While enabling distributed tracing usingcontinueTrace, found this issue. Thus, installed the latest version 10.28.0 which has a fix for it.Check the below screenshot
10.11.0withoutcontinueTrace10.28.0withcontinueTrace, which splits up the trace into multiple 1 for every span.Additional Context
No response
Priority
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding
+1orme too, to help us triage it.