Skip to content
Cloudflare Docs

Exporting OpenTelemetry Data

Cloudflare Workers supports exporting OpenTelemetry (OTel)-compliant telemetry data to any destination with an available OTel endpoint, allowing you to integrate with your existing monitoring and observability stack.

Supported telemetry types

You can export the following types of telemetry data:

  • Traces - Traces showing request flows through your Worker and connected services
  • Logs - Application logs including console.log() output and system-generated logs

Note: exporting Worker metrics and custom metrics is not yet supported.

Available OpenTelemetry destinations

Below are common OTLP endpoint formats for popular observability providers. Refer to your provider's documentation for specific details and authentication requirements.

ProviderTraces EndpointLogs Endpoint
Honeycombhttps://api.honeycomb.io/v1/traceshttps://api.honeycomb.io/v1/logs
Grafana Cloudhttps://otlp-gateway-{region}.grafana.net/otlp/v1/traceshttps://otlp-gateway-{region}.grafana.net/otlp/v1/logs[^1]
Axiomhttps://api.axiom.co/v1/traceshttps://api.axiom.co/v1/logs
DatadogNot yet available. Pending release from DatadogNot yet available. Pending release from Datadog
SentryNot yet available. Pending release from SentryNot yet available. Pending release from Sentry

Setting up OpenTelemetry-compatible destinations

To start sending data to your destination, you'll need to create a destination in the Cloudflare dashboard.

Creating a destination

Observability Destinations dashboard showing configured destinations for Grafana and Honeycomb with their respective endpoints and status
  1. Head to your account's Workers Observability section of the dashboard
  2. Click add destination.
  3. Configure your destination:
    • Destination Name - A descriptive name (e.g., "Grafana-tracing", "Honeycomb-Logs")
    • Destination Type - Choose between "Traces" or "Logs"
    • OTLP Endpoint - The URL where your observability platform accepts OTLP data.
    • Custom Headers (Optional) - Any authentication headers or other provider-required headers
  4. Save your destination
Edit Destination dialog showing configuration for Honeycomb tracing with destination name, type selection, OTLP endpoint, and custom headers

Enabling OpenTelemetry export for your Worker

After setting up destinations in the dashboard, configure your Worker to export telemetry data by updating your Wrangler configuration. Your destination name configured in your configuration file should be the same as the destination configured in the dashboard.

{
"observability": {
"traces": {
"enabled": true,
"destinations": ["tracing-destination-name"],
// traces sample rate of 5%
"head_sampling_rate": 0.05
},
"logs": {
"enabled": true,
"destinations": ["logs-destination-name"],
// logs sample rate of 60%
"head_sampling_rate": 0.6
}
}
}

Once you've configured your Wrangler configuration file, redeploy your Worker for new configurations to take effect. Note that it may take a few minutes for events to reach your destination.

Destination status

After creating a destination, you can monitor its health and delivery status in the Cloudflare dashboard. Each destination displays a status indicator that shows how recently data was successfully delivered.

Status indicators

StatusDescriptionTroubleshooting
Last: n minutes agoData was recently delivered successfully.
Never runNo data has been delivered to this destination.•Check if your Worker is receving traffic
• Review sampling rates (low rates generate less data)
ErrorAn error occurred while attempting to deliver data to this destination.• Verify OTLP endpoint URL is correct
• Check authentication headers are valid

Limits and pricing

Exporting OTel data is currently free to those currently on a Workers Paid subscription or higher during the early beta period. However, starting on January 15, 2026, tracing will be billed as part of your usage on the Workers Paid plan or contract.

This includes the following limits and pricing:

PlanTracesLogsPricing
Workers FreeNot availableNot available-
Workers Paid10 million events per month included10 million events per month included$0.05 per million additional events

Known limitations

OpenTelemetry data export is currently in beta. Please be aware of the following limitations:

  • Metrics export not yet supported: Exporting Worker infrastructure metrics and custom metrics via OpenTelemetry is not currently available. We are actively working to add metrics support in the future.
  • Limited OTLP support from some providers: Some observability providers are still rolling out OTLP endpoint support. Check the Available OpenTelemetry destinations table above for current availability.