Repository navigation
Closed as not planned
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
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
const sentryTrace = request.headers.get('sentry-trace') ?? undefined;
const baggage = request.headers.get('baggage') ?? undefined;
return Sentry.continueTrace({ sentryTrace, baggage }, async () => {
// All spans created inside here should use the incoming trace context
const response = (await app!.fetch(
request as unknown as Request,
env,
ctx,
)) as unknown as CloudflareResponse;
return response;
});Steps to Reproduce
- Setup hono app using
withSentry - Setup
continueTraceusing the headersbaggageandsentry-traceforwarded 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.0withoutcontinueTrace - Highlighted in red box is tracing on
10.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 +1 or me too, to help us triage it.
Reacted by Mit Parekh
Metadata
Metadata
Assignees
Projects
- StatusShow more project fieldsWaiting for: Community
Activity
linear commentedon Dec 4, 2025
JS-1252
chargome commentedon Dec 4, 2025
@MitP1997 Our SDKs usually continue the trace automatically.
Can you confirm that you get the actual values in:
fix(node): Ensure `startNewTrace` propagates traceId in OTel environm…
fix(node): Ensure `startNewTrace` propagates traceId in OTel environm…
fix(node): Ensure `startNewTrace` propagates traceId in OTel environm…
fix(node): Ensure `startNewTrace` propagates traceId in OTel environm…
getsantry commentedon Apr 15, 2026
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you remove the label
Waiting for: Community, I will leave it alone ... forever!"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀