Skip to content

bug(api): Workers Observability dashboard shows no logs for sonora-api-staging despite verified config #394

Description

@masch

Bug Description

Workers Observability on the staging API Worker (sonora-api-staging) is fully configured and verified at the API level, but no logs appear in the Cloudflare dashboard — neither in the persisted Logs tab (Workers Logs / Query Builder, last 30 minutes) nor in Real-time logs — while wrangler tail captures the exact same logs correctly in real time.

The Worker was deployed with wrangler deploy --config wrangler.staging.toml and the deployed settings confirm the configuration is applied.

Steps to Reproduce

  1. cd apps/api
  2. make api-deploy-staging (or bunx wrangler deploy --config wrangler.staging.toml)
  3. Verify deployed settings via API:
    curl -H "Authorization: Bearer $CF_TOKEN" \
      "https://api.cloudflare.com/client/v4/accounts/<ACCOUNT_ID>/workers/scripts/sonora-api-staging/settings"
    observability.enabled: true, logs.enabled: true, logs.persist: true, logs.invocation_logs: true, traces.enabled: true
  4. Make requests to https://sonora-api-staging.sonora-api.workers.dev/health (several, over minutes)
  5. In the Cloudflare dashboard: Workers & Pages → sonora-api-staging → Observability → Logs tab (last 30 minutes) and Real-time logs tab
  6. Observe: no entries in either tab

Expected Behavior

Workers Logs persisted in the dashboard should appear in the Logs tab within minutes of requests, and Real-time logs should stream live while the session is open — since observability.enabled = true and logs.persist = true are applied on the deployed Worker.

Actual Behavior

  • Dashboard Logs tab: empty (no entries in the last 30 minutes, no results from the query builder)
  • Dashboard Real-time logs tab: empty
  • wrangler tail --config wrangler.staging.toml: works correctly — captures every request/response log in real time (proven with multiple requests)

This is consistent with Cloudflare community report: https://community.cloudflare.com/t/workers-observability-logs-most-logs-not-appearing-in-dashboard-since-march-10/904412 (Workers Observability logs not appearing in dashboard since ~March 10, 2026, while wrangler tail works). Our case differs in one detail: that report shows scattered entries, ours shows zero entries in both tabs.

Relevant Config

apps/api/wrangler.staging.toml (and apps/api/wrangler.toml for production):

[observability]
enabled = true
head_sampling_rate = 1

[observability.logs]
enabled = true
invocation_logs = true

[observability.traces]
enabled = true
head_sampling_rate = 1

Environment

  • Account plan: Standard
  • Worker: sonora-api-staging (pre-existing Worker, created before the Workers Observability feature rollout)
  • Wrangler: 4.106.0
  • Runtime: Hono on Cloudflare Workers (Node.js compat)
  • Observed: 2026-08-04/05 UTC

Workaround

Use bunx wrangler tail --config wrangler.staging.toml from apps/api for real-time log visibility — this works reliably and captures the same logs the dashboard fails to show.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions