|
1 | 1 | --- |
2 | | -title: Workers automatic tracing, now in open beta |
| 2 | +title: Workers automatic tracing, now in open beta |
3 | 3 | description: Gain instant visibility into Workers execution with automatic tracing and OpenTelemetry exports |
4 | 4 | products: |
5 | 5 | - workers |
6 | | -date: 2025-11-06 |
| 6 | +date: 2025-11-07 |
7 | 7 | --- |
8 | 8 |
|
9 | | -Enable automatic tracing on your Workers, giving you detailed metadata and timing information for every operation your Worker performs. |
| 9 | +import { Render } from "~/components"; |
| 10 | + |
| 11 | +Enable automatic tracing on your Workers, giving you detailed metadata and timing information for every operation your Worker performs. |
10 | 12 |
|
11 | 13 |  |
12 | 14 |
|
13 | 15 | Tracing helps you identify performance bottlenecks, resolve errors, and understand how your Worker interacts with other services on the Workers platform. You can now answer questions like: |
14 | | -* Which calls are slowing down my application? |
15 | | -* Which queries to my database take the longest? |
16 | | -* What happened within a request that resulted in an error? |
| 16 | + |
| 17 | +- Which calls are slowing down my application? |
| 18 | +- Which queries to my database take the longest? |
| 19 | +- What happened within a request that resulted in an error? |
17 | 20 |
|
18 | 21 | **You can now:** |
19 | | -* View traces alongside your logs in the Workers Observability dashboard |
20 | | -* Export traces (and correlated logs) to any [OTLP-compatible destination](https://opentelemetry.io/docs/specs/otel/protocol/), such as [Honeycomb](/workers/observability/exporting-opentelemetry-data/honeycomb/), [Sentry](/workers/observability/exporting-opentelemetry-data/sentry/) or [Grafana](/workers/observability/exporting-opentelemetry-data/grafana-cloud/), by configuring a tracing destination in the [Cloudflare dashboard](https://dash.cloudflare.com/?to=/:account/workers-and-pages/observability/destinations) |
21 | | -* Analyze and query across span attributes (operation type, status, duration, errors) |
22 | 22 |
|
23 | | -## To get started, set: |
| 23 | +- View traces alongside your logs in the Workers Observability dashboard |
| 24 | +- Export traces (and correlated logs) to any [OTLP-compatible destination](https://opentelemetry.io/docs/specs/otel/protocol/), such as [Honeycomb](/workers/observability/exporting-opentelemetry-data/honeycomb/), [Sentry](/workers/observability/exporting-opentelemetry-data/sentry/) or [Grafana](/workers/observability/exporting-opentelemetry-data/grafana-cloud/), by configuring a tracing destination in the [Cloudflare dashboard](https://dash.cloudflare.com/?to=/:account/workers-and-pages/observability/destinations) |
| 25 | +- Analyze and query across span attributes (operation type, status, duration, errors) |
24 | 26 |
|
25 | | -```jsonc |
26 | | -{ |
27 | | - "observability": { |
28 | | - "tracing": { |
29 | | - "enabled": true |
30 | | - } |
31 | | - } |
32 | | -} |
33 | | -``` |
34 | | - |
35 | | -Starting with the compatibility date of [2025-11-19](/workers/configuration/compatibility-flags/#automatic-tracing), the following will also enable tracing **in addition to** logs: |
| 27 | +## To get started, set: |
36 | 28 |
|
37 | 29 | ```jsonc |
38 | 30 | { |
39 | | - "observability": { |
40 | | - "enabled": true |
41 | | - } |
| 31 | + "observability": { |
| 32 | + "tracing": { |
| 33 | + "enabled": true, |
| 34 | + }, |
| 35 | + }, |
42 | 36 | } |
43 | 37 | ``` |
44 | 38 |
|
| 39 | +<Render file="tracing-beta-config-note" product="workers" /> |
45 | 40 |
|
46 | | -## Want to learn more? |
47 | | -* [Read the announcement](https://blog.cloudflare.com/workers-tracing-now-in-open-beta/) |
48 | | -* [Check out the documentation](/workers/observability/traces/) |
49 | | - |
50 | | - |
| 41 | +## Want to learn more? |
51 | 42 |
|
| 43 | +- [Read the announcement](https://blog.cloudflare.com/workers-tracing-now-in-open-beta/) |
| 44 | +- [Check out the documentation](/workers/observability/traces/) |
0 commit comments