OpenAICloudflare Developer PlatformMay 7, 2026, 12:00 AM

Workers - Automatic tracing across Durable Object and Worker subrequests

A condensed section focused on the key takeaways first.

Original Post

Quick Digest

Summary

A condensed section focused on the key takeaways first.

openaienmodel: gpt-5-mini-2025-08-07

Workers - Automatic tracing across Durable Object and Worker subrequests

Key Points

  • Unified traces across Worker subrequests
  • Nested child spans for service bindings and Durable Objects
  • Enable tracing in Wrangler; OpenTelemetry exportable

Summary

Cloudflare Workers now automatically propagate trace context across Worker-to-Worker subrequests (service bindings and Durable Objects), producing a single unified trace with nested child spans. Traces are visible in the Cloudflare dashboard and can be exported to external observability platforms via OpenTelemetry.

Key Points

  • Automatic trace context propagation for service bindings and Durable Object calls; subrequests are recorded as nested child spans instead of disconnected traces.
  • Traces can be inspected in the Cloudflare dashboard or exported via OpenTelemetry to external tooling.
  • Tracing must be enabled in your Wrangler configuration for traces to be recorded (e.g., add tracing = true in wrangler.toml).
  • Recommended engineer actions:
    • Enable tracing in Wrangler, deploy your Worker, and exercise cross-Worker flows.
    • Validate nested spans in the Cloudflare dashboard or your OpenTelemetry backend.
  • Upcoming: external trace context propagation using the W3C Trace Context standard to link Worker traces with services outside Cloudflare.

Resources

  • See Workers tracing docs to get started and verify configuration.

Full Translation

Translations

A translation section that keeps the flow of the original article.

openaijamodel: gpt-5-mini-2025-08-07

Workers - Durable Object と Worker サブリクエストをまたいだ自動トレーシング

Durable Object と Worker サブリクエストをまたいだ自動トレーシング

Worker 間のサブリクエストでトレースコンテキストが自動的に伝播し、単一の統合トレースを取得できるようになりました。以前は、Worker が service binding や Durable Object を介して別の Worker を呼び出すと、自動トレーシングが切断されたトレースを生成していました。

これにより、次のことが可能になります:

  • リクエストを Worker アーキテクチャ全体で単一のトレースビューとして追跡できる
  • service binding および Durable Object の呼び出しを、別々のトレースではなく入れ子になった子スパンとして表示できる
  • Cloudflare ダッシュボードまたは OpenTelemetry を介した外部の可観測性プラットフォームで Worker 間のリクエストフローをデバッグできる

トレースを記録するには、Wrangler の設定で Tracing を有効にする必要があります。開始するには Workers tracing を参照してください。

次の取り組みとして、W3C Trace Context standards ↗ を使用した外部トレースコンテキストの伝播に対応する作業を進めています。これにより、Workers のトレースを Cloudflare 外部のサービスのトレースとリンクできるようになります。

Workers - Automatic tracing across Durable Object and Worker subrequests | Cloudflare Developer Platform | DocsDigest