Repository navigation
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.38.0
Framework Version
Hono 4.10.1, Wrangler 4.55.0
Link to Sentry event
Reproduction Example/SDK Setup
DO Sentry init:
export const MyDO = Sentry.instrumentDurableObjectWithSentry(
(env: Env) => ({
dsn: "...",
tracesSampleRate: 1.0,
enableLogs: true,
environment: env.ENVIRONMENT,
instrumentPrototypeMethods: true,
}),
MyDOBase,
);Worker init options (which calls the DO):
{
dsn: "...",
sendDefaultPii: true,
environment: env.ENVIRONMENT,
tracesSampleRate: 1.0,
enableLogs: true,
}Steps to Reproduce
- Instrument the Worker with
withSentry(...)andtracesSampleRate: 1.0. - Instrument the Durable Object with
instrumentDurableObjectWithSentry(...), also withtracesSampleRate: 1.0andinstrumentPrototypeMethods: true. - Use the same DSN for both Worker and DO (same behaviour occurs with different DSNs though - using a different DSN in the DO is actually ignored and sends DO traces to the Worker DSN, possibly another bug but not what I'm trying to do so I am not concerned)
- In Worker
fetch, call a DO RPC method (e.g.stub.rpcPing()), then return a response. - Run locally (
wrangler dev) and call the endpoint a few times - In Sentry Traces, inspect:
- the Worker HTTP transaction/span (
http.serverwon't have child spans for the DO RPC call) - the DO RPC spans will all be in a single trace for that DO (for DO lifecycle I assume) (
op=rpc)
- the Worker HTTP transaction/span (
Expected Result
I would expect RPC methods to behave like DO.fetch in that the worker trace and baggage is propagated/they appear as child spans
Actual Result
Here's a trace for lots of server requests that had DO calls: https://enhance-labs.sentry.io/explore/traces/trace/ce631a8e51d74ba7b5398198b5c92778
Here's the trace where those DO calls ended up: https://enhance-labs.sentry.io/explore/traces/trace/d0a891c5ab8848c5acfd9c802c1f28af/
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.
Metadata
Metadata
Assignees
Projects
- StatusShow more project fieldsNo status
Activity
linear commentedon Feb 14, 2026
JS-1715
JPeer264 commentedon Feb 16, 2026
Thanks for writing in. It very much looks like that this is not yet working: #16898
I'll try to prioritize RPCs within Cloudflare
camhahu commentedon Feb 17, 2026
Thanks @JPeer264 !
Linked issue seems to be able Service Bindings. Feels like these things are probably similar but just want to be clean Sentry does have RPC instrumentation today for Durable Objects today - just no trace propagation
JPeer264 commentedon Feb 17, 2026
Makes sense. Maybe we missed something when we implemented trace propagation
feat(cloudflare): Propagate traceparent to RPC calls - via fetch (#19991
JPeer264 commentedon Apr 10, 2026
That is a false positive, it is not resolved. The actual fix for this will come next week. The merged PR is only adding support for trace propagation via
.fetchand not the functions directlyfeat(cloudflare): Add trace propagation for RPC method calls (#20343)
JPeer264 commentedon Apr 27, 2026
In the next release this must be enabled with
enableRpcTracePropagation: truein theSentry.withSentryoptions.github-actions commentedon Apr 29, 2026
A PR closing this issue has just been released 🚀
This issue was referenced by PR #20343, which was included in the 10.51.0 release.