Automatic tracing across Durable Object and Worker subrequests
Key Points
- Unified tracing across Worker subrequests and Durable Objects
- Nested child spans for service bindings and Durable Object calls
- OpenTelemetry integration for external observability platforms
Summary
Cloudflare Workers now supports automatic trace context propagation across Worker-to-Worker subrequests and Durable Object calls. Previously, these cross-service calls generated disconnected traces; now you get a single unified trace view across your entire Worker architecture.
Key Points
- Follow complete request flows through your entire Worker architecture in one trace view
- Service binding and Durable Object calls now appear as nested child spans instead of separate traces
- Debug cross-Worker request flows directly in the Cloudflare dashboard or external observability platforms via OpenTelemetry
- Tracing must be enabled in your Wrangler configuration for traces to be recorded
- Future support planned for W3C Trace Context standards to link traces with external services outside Cloudflare