Skip to content

Commit 8529e18

Browse files
committed
update
1 parent 4ebd3ba commit 8529e18

File tree

4 files changed

+35
-17
lines changed

4 files changed

+35
-17
lines changed

src/content/docs/workers/observability/exporting-opentelemetry-data/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
pcx_content_type: concept
33
title: Exporting OpenTelemetry Data
44
sidebar:
5-
order: 4
5+
order: 5
66
---
77

88
import { Badge, DirectoryListing } from "~/components";
@@ -42,7 +42,7 @@ After setting up destinations in the dashboard, configure your Worker to export
4242
"observability": {
4343
"traces": {
4444
"enabled": true,
45-
"destinations": ["tracing-destination-name"],
45+
"destinations": ["tracing-destination-name"]
4646
},
4747

4848
"logs": {

src/content/docs/workers/observability/query-builder.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Query Builder
44
head: []
55
description: Write structured queries to investigate and visualize your telemetry data.
66
sidebar:
7-
order: 3
7+
order: 4
88
badge:
99
variant: tip
1010
text: New

src/content/docs/workers/observability/traces/index.mdx

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ pcx_content_type: navigation
33
title: Traces
44
sidebar:
55
order: 3
6-
group:
7-
hideIndex: false
6+
87
---
98

109
## What is Workers tracing?
@@ -16,13 +15,13 @@ With tracing you can answer questions such as:
1615
* How long do subrequests to my Worker take?
1716
* How long are my requests to my KV Namespace or R2 bucket taking?
1817

19-
## Automatic instrumentation
18+
Take for example, an application that handles online ordering and makes request to a D1 Database to fetch customer information, an external API to validate payment information, and a Cloudflare Queue to submit the order. Tracing lets you visualize an invocation call by call at each part of the request journey. Our example may look something like this:
2019

21-
Each trace consists of one or more spans, representing the various calls made to different Worker services as part of the invocation. Cloudflare has automatically instrumented fetch calls and requests to Cloudflare resources (e.g. Workers KV, D1 Databases, Durable Objects) bound to your Workers application, without requiring you to install and configure an OpenTelemetry SDK.
20+
**TODO: insert example of trace here**
2221

23-
Take for example, an application that handles online ordering and makes request to a D1 Database to fetch customer information, an external API to validate payment information, and a Cloudflare Queue to submit the order. Tracing lets you visualize an invocation call by call at each part of the request journey. Our example above may look something like this:
22+
## Automatic instrumentation
2423

25-
**TODO: insert example of trace here**
24+
Each trace consists of one or more spans, representing the various calls made to different Worker services as part of the invocation. Cloudflare has **automatically** instrumented things like fetch calls and calls to Cloudflare bindings (e.g. Workers KV, D1 Databases, Durable Objects) on your Workers application, without requiring you to install and configure an OpenTelemetry SDK. Just enable on your Worker and you will automatically start emitting traces.
2625

2726
While our work for automatic instrumentation is ongoing, we've [documented](/workers/observability/traces/spans-and-attributes) all existing spans and attributes currently instrumented today.
2827

@@ -45,7 +44,7 @@ To view traces in the Workers dashboard, you can set the following in your Wrang
4544
You can also export [OpenTelemetry](https://opentelemetry.io/) (OTel) traces to a 3rd party destination such as Honeycomb by [setting up an external destination](/workers/observability/exporting-opentelemetry-data) in the Cloudflare dashboard and setting that destination in your Wrangler configuration file.
4645

4746
## Head-based sampling
48-
Head-based sampling allows you to trace a percentage of incoming requests in your Cloudflare Worker. With sampling, you can help reduce volume and manage costs, while still providing meaningful insights into your application. You can configure head-based sampling for both tracing and logging separately on a per-Worker basis.
47+
Head-based sampling allows you to trace a percentage of incoming requests in your Cloudflare Worker. With sampling, you can help reduce volume and manage costs, while still providing meaningful insights into your application.
4948

5049
The valid range is from 0 to 1, where 0 indicates zero out of one hundred invocations will be traced, and 1 indicates every requests will be traced. If `head_sampling_rate` is unspecified, it defaults to tracing 100% of requests.
5150

@@ -64,7 +63,7 @@ You can configure `head_sampling_rate` in your Wrangler configuration. If you ha
6463
"logging": {
6564
"enabled": true
6665
// set logging sampling rate to 50%
67-
"head_sampling_rate": 0.5
66+
"head_sampling_rate": 0.6
6867
}
6968
}
7069
```
@@ -75,14 +74,14 @@ Workers tracing is currently **free** during the early beta period. This include
7574

7675
Starting on xx/xx/xxxx, tracing will be billed as part of Workers observability. Each span in a trace counts as one observability event, sharing the same monthly quota and pricing as [Workers logs](https://developers.cloudflare.com/workers/platform/pricing/#workers-logs):
7776

78-
| | Events (trace spans or log events) | Retention |
77+
| | Events (trace spans or log events) | Retention |
7978
| ---------------- | ------------------------------------------------------------------------- | --------- |
80-
| **Workers Free** | 100,000 per day | 3 Days |
81-
| **Workers Paid** | 10 million included per month <br /> +$0.05 per additional 100,000 events | 30 Days |
79+
| **Workers Free** | 200,000 per day | 3 Days |
80+
| **Workers Paid** | 10 million included per month +$0.60 per additional million events | 7 Days |
8281

8382
On xx/xx/xxxx, you will start being billed for your tracing usage.
8483

85-
## Known issues
86-
- Trace context propagation
87-
- Custom spans and attributes
84+
Workers tracing is currently in open beta. This page documents current limitations and any features on our roadmap. To provide more feedback and feature requests please [reach out to us](link).
85+
86+
8887

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
pcx_content_type: navigation
3+
title: Known limitations
4+
sidebar:
5+
order: 3
6+
group:
7+
hideIndex: false
8+
---
9+
10+
Workers tracing is currently in open beta. This page documents current limitations and any features on our roadmap. To provide more feedback and feature requests please [reach out to us](link).
11+
12+
### Support for more spans and attributes
13+
We are adding more automatic instrumentation for every part of the Workers platform. While we first want to give you visibility into the duration of every operation w ithin your request, we also want to add more detailed attributes which are crucial to debugging your app. You can find a complete list of what is already instrumented [here](link). Your feedback on what’s missing will be extremely valuable [here](link).
14+
15+
### Trace context propagation
16+
One of the most critical aspects of distributed tracing is ensuring trace context flows seamlessly across service boundaries and automatically linking spans together to create complete, end-to-end visibility. When fully implemented, our automatic trace context propagation will follow W3C standards to ensure compatibility across your existing tools and services.
17+
18+
### Support for custom spans and attributes:
19+
While automatic instrumentation covers the platform interactions, we know you need visibility into your own application logic too. We're working on the ability to create custom spans around your use case and other application-specific operations that matter most to your debugging workflow.

0 commit comments

Comments
 (0)