Skip to main content
All Cloudflare integration capabilities

About

Stream console output and OTLP traces from your Cloudflare Workers directly to Sazabi using Cloudflare’s native Workers Observability feature. You configure OTLP destinations at the account level and then opt each Worker in through its wrangler.jsonc or wrangler.toml configuration. Cloudflare Logpush datasets (HTTP requests, Firewall events, DNS logs) come from a separate source. See Cloudflare for that setup.

Cloudflare Sandbox and Containers

Sandbox SDK and Containers apps run behind a Worker and a Durable Object, so part of their logging already flows through this source.
  • Included: console.log output from the Worker and the Durable Object, and the Sandbox SDK’s own structured events. These are ordinary Workers logs, so they reach Sazabi once the Worker that hosts the sandbox lists sazabi-logs under observability.logs.destinations.
  • Not included: stdout and stderr of processes running inside the container. Cloudflare shows them in its dashboard but documents no OpenTelemetry export for them. Its Containers FAQ mentions Logpush export without naming a dataset, so the Cloudflare Logpush source cannot select one. The Sandbox SDK’s events also leave out command output.
To capture process output, read it in the Worker or Durable Object and log it with console.log. Log an object rather than a string so the fields stay structured. With Sandbox SDK 0.x, follow a background process with streamProcessLogs():
With the Container API that @cloudflare/sandbox 1.0 uses, read the stdout stream of exec() inside your Durable Object:
stderr: "combined" merges standard error into stdout, so one loop reads both.

Prerequisites

  • Cloudflare Workers Observability access on your Cloudflare account
  • Your Sazabi OTLP intake URLs for logs and traces (shown above)
  • Workers deployed via Wrangler

Set up in the dashboard

1

Open Workers Observability in the Cloudflare dashboard

In the Cloudflare dashboard, navigate to Workers & Pages > Observability > Telemetry > Add Destination.
2

Add a logs destination

Create a new destination with the following settings:
  • Destination type: Logs
  • Name: sazabi-logs
  • Endpoint: your Sazabi OTLP logs intake URL (shown above, ending with /v1/logs)
3

Add a traces destination

Create a second destination with the following settings:
  • Destination type: Traces
  • Name: sazabi-traces
  • Endpoint: your Sazabi OTLP traces intake URL (shown above, ending with /v1/traces)
4

Opt each Worker in via wrangler config

In each Worker’s wrangler.jsonc or wrangler.toml, enable Workers observability and list the log and trace destination names you created (sazabi-logs and sazabi-traces):
persist defaults to true. From December 1, 2026, logs and traces that Cloudflare also stores count toward Cloudflare Observability usage. See Cloudflare’s OpenTelemetry export reference.
5

Redeploy each Worker

Run wrangler deploy for each Worker whose configuration you updated. Workers Observability takes effect on the next deployment.
6

Hand off the change

Commit these changes on a new branch, push it, and open a pull request. Keep the intake URL and any keys in environment variables or a secret store, and commit only configuration that references them.

Set up with the CLI

You can also register the Cloudflare Workers log source with the Sazabi CLI (installed and authenticated — see CLI reference). Registering the source mints the same intake URL the dashboard shows above (the public key is embedded in its hostname):
The command prints the intake URL for the new source — copy the whole URL and point your sender at it using the configuration shown above. Run sazabi log-sources get <log-source-id> at any time to reprint the endpoint, or sazabi log-sources list to see every log source in the project.

Verify

Invoke a Worker that you opted in (for example, make an HTTP request to its route). Open the Intake page in the Sazabi dashboard and confirm logs or traces from the Cloudflare Workers source appear within a minute or two.

Troubleshooting

No telemetry after redeploying — Confirm the Worker’s wrangler.jsonc/wrangler.toml enables observability and lists the destination names, and that those names match exactly what you created in the Cloudflare dashboard (case-sensitive). Logs appear but traces do not — Verify both the logs and traces destinations are created in the Cloudflare dashboard and both destination names appear in the Worker’s wrangler config. Destination not found error — Destinations are account-scoped. Confirm you created the destination in the same Cloudflare account that owns the Workers you are configuring.

Further reading

Intake

See per-source ingestion volume and health.

Log sources

Browse the full log source catalog.