SigNoz Cloud - This page is relevant for SigNoz Cloud editions.
Self-Host - This page is relevant for self-hosted SigNoz editions.

Cloudflare Workers OpenTelemetry Instrumentation

This document explains how to instrument Cloudflare Workers with OpenTelemetry using Community or Official methods and send traces to SigNoz.

Info

Using self-hosted SigNoz? Most steps are identical. To adapt this guide, update the endpoint and remove the ingestion key header as shown in Cloud → Self-Hosted.

Prerequisites

You will need the following in place before moving on to the next step:

  • A Cloudflare account (Paid plan or higher in case of Official)
  • Wrangler, the CLI tool for Cloudflare.

Send traces to SigNoz

Cloudflare Workers supports exporting OpenTelemetry (OTel)-compliant traces directly to SigNoz without code changes, using Cloudflare's built-in observability features.

Step 1: Create destination in Cloudflare

  1. Go to Workers Observability in your Cloudflare dashboard
  2. Click on Destinations Tab
  3. Click Add destination
  4. Configure:
    • Name: Choose a name (e.g., signoz-traces)
    • Type: Traces
    • OTLP Endpoint:
    • Headers:
      • Add signoz-ingestion-key: <your-ingestion-key>
  5. Click Save

Step 2: Configure Wrangler

Update wrangler.jsonc ( use the destination name created in Step 1 ):

{
  "observability": {
    "traces": {
      "enabled": true,
      "destinations": ["signoz-traces"]
    }
  }
}

Additional configuration options:

You can customize the configuration with additional options such as:

  • head_sampling_rate: Control sampling rate for traces
  • persist: false: Disable storing data in Cloudflare dashboard (only send to SigNoz)

For complete configuration options, refer to Cloudflare's OpenTelemetry documentation.

Step 3: Deploy

Run wrangler deploy. Data appears in SigNoz within minutes.

Limitations

  • Beta status: OpenTelemetry data export from Cloudflare Workers is in beta. Features may change.

Validate

After deploying your Worker, verify that traces are being sent to SigNoz:

  1. Access SigNoz UI and generate traces: Navigate to the Traces tab in your SigNoz dashboard and send requests to your Cloudflare Worker to generate trace data

  2. View traces: Within a few minutes, traces from your Worker should appear in the Traces view

Expected behavior: You should see traces with attributes like worker_name, script_name, and any custom fields from your Worker code.

Cloudflare Traces in Traces View
Cloudflare Traces in Traces View

You can click on a particular TraceID in the Traces view to get the detailed view of the Cloudflare Worker as shown below.

Sample Cloudflare Trace
Sample Cloudflare Trace

Troubleshooting

Traces not appearing in SigNoz

Symptom: No traces visible in SigNoz UI after deploying the Worker.

Things to investigate:

  1. Check destination status

    • In your Cloudflare dashboard under Workers Observability > Destinations, verify the status:
      • Last: n minutes ago - Data is being delivered successfully
      • Never run - No data has been delivered yet (check if your Worker is receiving traffic or review sampling rates)
      • Error - Delivery failed (verify OTLP endpoint and authentication headers)
  2. Incorrect OTLP endpoint

  3. Missing or invalid ingestion key

    • Incorrect or missing signoz-ingestion-key header
    • Copy the correct ingestion key from SigNoz settings and update the destination header
  4. Worker not receiving traffic

    • No requests to the Worker means no traces generated
    • Send test requests to your Worker endpoint
  5. Sampling rate too low

    • Low head_sampling_rate means fewer traces are sent
    • Increase the sampling rate in your wrangler.jsonc configuration
  6. Network/connectivity issues

    • Firewall or network blocking OTLP traffic
    • Verify your OTel collector is accessible from Cloudflare Workers

Verification: Check the destination status in Cloudflare dashboard (Workers Observability > Destinations) to see delivery status and any errors.

Next steps

  • Set up logs: Send Cloudflare Worker logs to SigNoz by following the Cloudflare logs guide
  • Create dashboards: Build custom dashboards to visualize your Worker performance
  • Set up alerts: Configure alerts based on trace data to monitor Worker health
  • Analyze traces: Use the Trace Explorer to debug issues and optimize performance

Last updated: November 14, 2025

Edit on GitHub

Was this page helpful?