Skip to content

OpenTelemetry export

Cloudflare exports telemetry to destinations that support the OpenTelemetry Protocol (OTLP). Use these destinations with Cloudflare telemetry and your existing observability tools.

Supported telemetry

You can export these telemetry types:

  • Cloudflare Traces - Traces showing production request paths through Cloudflare
  • Workers Traces - Traces showing requests through Workers and connected services
  • Workers Logs - Application and system logs, including console.log() output

Available destinations

These endpoint formats cover common observability providers. Check your provider documentation for current authentication requirements.

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
Firetiger ↗︎ https://ingest.cloud.firetiger.com/v1/traces https://ingest.cloud.firetiger.com/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
Sematext ↗︎ https://otlp-receiver.sematext.com (US), https://otlp-receiver.eu.sematext.com (EU) https://otlp-receiver.sematext.com (US), https://otlp-receiver.eu.sematext.com (EU)
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
Splunk Observability ↗︎ https://ingest.<REALM>.signalfx.com/v2/trace/otlp N/A
Splunk Platform ↗︎ http://splunk.internal:4318/v1/traces http://splunk.internal:4318/v1/logs
SigNoz ↗︎ https://ingest.<region>.signoz.cloud:443/v1/traces https://ingest.<region>.signoz.cloud:443/v1/logs

Create a destination

Create an account-level Cloudflare Observability destination first.

Observability Destinations dashboard showing configured destinations for Grafana and Honeycomb with their respective endpoints and status
  1. In the Cloudflare dashboard, go to Observability > Destinations.

    Go to OpenTelemetry ↗
  2. Select Add destination.

  3. Configure the destination:

    • Destination name - Enter a descriptive name, such as grafana-traces.
    • Destination type - Select Traces or Logs.
    • OTLP endpoint - Enter the provider endpoint for your telemetry type.
    • Custom headers - Add any provider authentication headers.
  4. Select Save.

Edit Destination dialog showing configuration for Honeycomb tracing with destination name, type selection, OTLP endpoint, and custom headers

Custom receiver requirements

A custom receiver must accept OTLP over HTTP with JSON encoding. Use separate endpoints for traces and logs, typically /v1/traces and /v1/logs. Configure any authentication headers when you create the destination. Cloudflare sends a test export to the receiver using those headers before saving the destination.

For traces, accept a JSON export request with a resourceSpans array. For logs, accept resourceLogs. Handle empty arrays as valid requests. For example, test the traces endpoint with the same authentication headers as your destination:

curl --include --request POST https://otel.example.com/v1/traces \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer <TOKEN>" \
  --data '{"resourceSpans": []}'

For a successful export with no partial failures, return:

HTTP/1.1 200 OK
Content-Type: application/json

{}

If destination creation fails, check the receiver logs, URL, authentication headers, and response against the OTLP/HTTP response contract ↗︎.

Enable export for Cloudflare Traces

Add the destination under Export destinations in your domain settings. Refer to Cloudflare Traces configuration.

Enable OpenTelemetry export for your Worker

Configure and redeploy your Worker after creating a destination. Refer to Workers OpenTelemetry export.

Check destination status

The dashboard shows each destination delivery status. The status reflects the most recent delivery attempt.

Status Description Troubleshooting
Last: n minutes ago Cloudflare delivered data recently. No action required
Never run Cloudflare has not delivered data. Check source traffic, export settings, and sampling rates
Error Cloudflare could not deliver data. Check the OTLP endpoint and authentication headers

Known limitations

Some providers do not support every OTLP telemetry type. Check the available destinations and your provider documentation.

Was this helpful?