OpenTelemetry Export: Traces, Logs, Destinations, and Worker Sampling
How Cloudflare Observability sends traces and logs over OTLP, creates destinations, and enables export for domains and Workers.
This page summarises Cloudflare documentation on exporting Cloudflare Traces, Workers traces, and Workers logs to external observability stacks using the OpenTelemetry Protocol (OTLP). If you already use Honeycomb, Grafana Cloud, Axiom, Sentry, or similar tools, the usual question is not whether Cloudflare can talk OTLP—it can—but how account-level destinations relate to domain and Worker export settings, and what each vendor accepts for traces versus logs.
OpenTelemetry export: what Cloudflare sends and where
Section titled “OpenTelemetry export: what Cloudflare sends and where”OpenTelemetry export means Cloudflare pushes telemetry to destinations that speak OTLP, so you can query and dashboard the same data in tools you already operate.
Cloudflare exports telemetry to destinations that support the OpenTelemetry Protocol (OTLP). Use these destinations with Cloudflare telemetry and your existing observability tools.
— Cloudflare, OpenTelemetry export
Supported telemetry types are:
| Telemetry type | What it covers |
|---|---|
| Cloudflare Traces | Production request paths through Cloudflare |
| Workers Traces | Requests through Workers and connected services |
| Workers Logs | Application and system logs, including console.log() output |
Send Cloudflare Traces, Workers traces, and Workers logs to an OpenTelemetry destination.
— Cloudflare, Export
Workers follow OpenTelemetry standards, which is why the same destination pattern works across vendors:
Workers tracing follows OpenTelemetry (OTel) standards ↗︎. This makes it compatible with popular observability platforms, such as Honeycomb, Grafana Cloud, and Axiom, while requiring zero development effort from you. If your observability provider has an available OpenTelemetry endpoint, you can export traces (and logs)!
— Cloudflare, Traces
Observability Destinations: account-level OTLP endpoints
Section titled “Observability Destinations: account-level OTLP endpoints”Before any trace or log leaves Cloudflare, you create an account-level destination under Observability > Destinations > OpenTelemetry. For Cloudflare Traces, you can also use Export destinations in trace configuration to point at those same account-level OpenTelemetry destinations.
Use Export destinations to send traces to configured account-level OpenTelemetry destinations. To create a destination or configure a provider, refer to OpenTelemetry export.
— Cloudflare, Configuration
You can save and export the same traces, or send data only to a third party:
You can save and export the same traces. If you only want traces in an external tool, turn off Persist to Cloudflare.
— Cloudflare, Configuration
OTLP protocol limits on Cloudflare
Section titled “OTLP protocol limits on Cloudflare”Cloudflare documents OTLP ingestion constraints that affect every destination:
Cloudflare does not support the binary format ↗︎ for OTLP ingestion.
— Cloudflare, OpenTelemetry export
Most providers require authentication headers. Check your provider documentation for specific requirements.
— Cloudflare, OpenTelemetry export
Provider traces and logs endpoints (OTLP)
Section titled “Provider traces and logs endpoints (OTLP)”Endpoint patterns below come from Cloudflare’s compatibility table. Always confirm current authentication headers in your vendor’s docs; guides in this cluster spell out headers for several vendors.
| Provider | Traces endpoint | Logs endpoint |
|---|---|---|
| Honeycomb | https://api.honeycomb.io/v1/traces |
https://api.honeycomb.io/v1/logs |
| Grafana Cloud | https://otlp-gateway-<REGION>.grafana.net/otlp/v1/traces |
https://otlp-gateway-<REGION>.grafana.net/otlp/v1/logs |
| Axiom | https://api.axiom.co/v1/traces |
https://api.axiom.co/v1/logs |
| Sentry | https://<HOST>/api/<PROJECT_ID>/integration/otlp/v1/traces |
https://<HOST>/api/<PROJECT_ID>/integration/otlp/v1/logs |
| PostHog | Not supported | https://<REGION>.i.posthog.com/i/v1/logs |
| Datadog ↗︎ | https://cloudflare.integrations.otlp.<DD_SITE>/v1/traces |
https://cloudflare.integrations.otlp.<DD_SITE>/v1/logs |
| New Relic ↗︎ | https://otlp.nr-data.net/v1/traces |
https://otlp.nr-data.net/v1/logs |
Full rows for Firetiger, Sematext, Splunk, SigNoz, and others appear in OpenTelemetry export — Available destinations.
Some providers do not support every OTLP telemetry type. Check the available destinations and your provider documentation.
— Cloudflare, OpenTelemetry export
How to add a destination in the dashboard
Section titled “How to add a destination in the dashboard”The flow is the same for every vendor: name the destination, pick Traces or Logs, set the OTLP endpoint, add custom headers for auth, then save.
-
In the Cloudflare dashboard, open Observability > Destinations, then OpenTelemetry (OpenTelemetry export — Create a destination).
-
Select Add destination.
-
Set Destination name, Destination type (
TracesorLogs), OTLP endpoint, and Custom headers (provider tokens or dataset headers). -
Select Save.
In the Cloudflare dashboard, go to Observability > Destinations.
Go to OpenTelemetry ↗
Select Add destination.
— Cloudflare, OpenTelemetry export
Create separate destinations when a provider uses different endpoints or headers for traces and logs—for example Grafana Cloud asks you to append /v1/traces or /v1/logs to the gateway URL (Export to Grafana Cloud).
Enable export: Cloudflare Traces vs Workers
Section titled “Enable export: Cloudflare Traces vs Workers”After destinations exist, enablement splits by telemetry source:
| Source | Where you enable export |
|---|---|
| Cloudflare Traces | Domain settings — add the destination under Export destinations (Enable export for Cloudflare Traces) |
| Workers logs and traces | Worker — Wrangler observability config; redeploy (Workers OpenTelemetry export) |
Creating a destination does not start exporting telemetry. To export Workers Logs or Workers Traces, configure OpenTelemetry export for your Worker. To export Cloudflare Traces, configure export for your domain.
— Cloudflare, Export to Axiom (same wording on Grafana, Honeycomb, and Sentry guides)
Workers can export OpenTelemetry-compliant logs and traces to external destinations. First, create a destination and configure your provider.
— Cloudflare, Workers OpenTelemetry export
Workers observability block: destinations, sampling, persist
Section titled “Workers observability block: destinations, sampling, persist”Destination names in Wrangler must match dashboard destination names exactly:
{ "observability": { "traces": { "enabled": true, "destinations": ["tracing-destination-name"], "head_sampling_rate": 0.05, "persist": false }, "logs": { "enabled": true, "destinations": ["logs-destination-name"], "head_sampling_rate": 0.6, "persist": false } }Equivalent TOML appears in Workers OpenTelemetry export — Configure export.
persist controls whether Cloudflare also stores exported data:
By default, persist is true. Logs and traces are exported and stored in Cloudflare. Beginning December 1, 2026, persisted data contributes to Cloudflare Observability ingestion and storage usage. Set persist to false if you only need data in your external destination.
— Cloudflare, Workers OpenTelemetry export
Redeploy your Worker after updating its Wrangler configuration. Events may take several minutes to reach your destination.
— Cloudflare, Workers OpenTelemetry export
Workers tracing docs note you may use a third party as the sole trace store when persistence is off:
You can also set persist: false to export traces to your destination without persisting them in the Cloudflare dashboard. This allows you to use a third-party observability provider as your sole traces destination.
— Cloudflare, Traces
Workers export limitations
Section titled “Workers export limitations”Not all Worker metrics leave via OTLP:
Workers infrastructure metrics and custom metrics cannot be exported through OpenTelemetry.
— Cloudflare, Workers OpenTelemetry export
For push-style log shipping to object storage (R2, S3) rather than OTLP, see Workers Logpush—a different path from OpenTelemetry export.
Vendor-specific OTLP auth and supported signal types
Section titled “Vendor-specific OTLP auth and supported signal types”Axiom: dataset header and bearer token
Section titled “Axiom: dataset header and bearer token”Axiom uses standard OTLP paths plus dataset and API token headers (Export to Axiom):
- Traces:
https://api.axiom.co/v1/traces - Logs:
https://api.axiom.co/v1/logs - Auth:
Authorization: Bearer <YOUR_API_TOKEN> - Dataset:
X-Axiom-Dataset: Your dataset name
Honeycomb: x-honeycomb-team and ingest keys
Section titled “Honeycomb: x-honeycomb-team and ingest keys”Honeycomb documents separate trace and log destinations with the team API key in x-honeycomb-team (Export to Honeycomb). Ingest API keys start with hcaik_.
Grafana Cloud: Basic auth and path suffixes
Section titled “Grafana Cloud: Basic auth and path suffixes”From Grafana Cloud portal Connections > OpenTelemetry, copy OTEL_EXPORTER_OTLP_ENDPOINT and headers, then append /v1/traces or /v1/logs when creating Cloudflare destinations (Export to Grafana Cloud).
Sentry: project OTLP URLs and x-sentry-auth
Section titled “Sentry: project OTLP URLs and x-sentry-auth”Sentry exposes per-project OTLP URLs and an auth header value from Client Keys (DSN) (Export to Sentry). Header form: x-sentry-auth: sentry sentry_key=<SENTRY_PUBLIC_KEY>.
PostHog: logs only through OTLP
Section titled “PostHog: logs only through OTLP”PostHog is an important exception in this cluster:
PostHog accepts logs through its OpenTelemetry Protocol (OTLP) endpoint. It does not accept traces through OTLP.
— Cloudflare, Export to PostHog
PostHog does not support Workers Traces or Cloudflare Traces through OTLP.
— Cloudflare, Export to PostHog
If logs never arrive, Cloudflare lists checks: phc_ API key prefix, regional endpoint, destination status, and sampling (Logs do not appear in PostHog).
Common mistakes when exporting Workers traces and logs
Section titled “Common mistakes when exporting Workers traces and logs”- Destination saved but no data — You skipped domain Export destinations for Cloudflare Traces or Wrangler
observability.destinationsfor Workers; creating a destination alone does not export (Export to Honeycomb — Enable export). - Wrong signal type on one destination — Mixing traces endpoint with Logs destination type (or vice versa) breaks ingest; use one destination per type when endpoints differ.
- PostHog traces — Configuring trace export to PostHog will not work; only Workers Logs via OTLP are supported (Export to PostHog).
- Binary OTLP — Collectors expecting protobuf-only binary OTLP ingestion are incompatible with Cloudflare’s documented limitation (OpenTelemetry export).
- Sampling set to zero effect — Low
head_sampling_ratereduces volume; combine with destination status checks before assuming export is broken. - Expecting custom Worker metrics over OTLP — Infrastructure and custom metrics are explicitly excluded from OpenTelemetry export (Workers OpenTelemetry export).
Cloudflare Workers observability also mentions Tail Workers for filtering and sampling on telemetry—a complementary knob when you need transformation before data hits a sink or destination.
How to check this on your site
Section titled “How to check this on your site”- In the Cloudflare dashboard, open Observability > Destinations and confirm each OpenTelemetry destination shows the expected status and matches the endpoint table for your vendor.
- For Cloudflare Traces, verify the destination is listed under Export destinations in domain trace settings (Cloudflare Traces configuration).
- For Workers, confirm Wrangler
observability.traces/observability.logsname the same destinations, redeploy, and wait several minutes for data (Workers OpenTelemetry export). - In the external tool (Axiom, Grafana, Honeycomb, Sentry, PostHog, etc.), run a time-bounded query on the dataset or service you configured using that vendor’s guide linked from OpenTelemetry export.
- You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page does not match your dashboard or vendor behavior, email yimasynthetic@gmail.com with the page URL and the exact statement you think is wrong or unclear.