Skip to content
AnswerWell geo Documentation

Research · 10 min read · Answerwell

Worker Runtime Observability: Metrics, Logs, Traces and Durable Object Debugging

How to use Cloudflare Workers Observability, Metrics, and Durable Object dashboards to debug errors, latency, memory, deployments, and storage.

This page summarizes Cloudflare documentation on observing and debugging Cloudflare Workers and Durable Objects: the Workers Observability dashboard for logs and traces, the Metrics tab for performance and deployments, and Durable Object–specific charts, filters, and Data Studio. It does not cover unrelated dashboard changes such as the Workers Domains tab or account-wide Monitors alerts unless they share the same telemetry.

Workers Observability: logs, traces, and how to search them

Section titled “Workers Observability: logs, traces, and how to search them”

Workers Observability is the main place to investigate runtime behavior after something fails or slows down in production. Open it from Workers & Pages → your Worker → Observability, or use the account-level Observability experience described in Visualize data, share links, and create exports with the new Workers Observability dashboard.

The Workers Observability dashboard offers a single place to investigate and explore your Workers Logs.

— Cloudflare, Investigate your Workers with the Query Builder in the new Observability dashboard

Overview, Invocations, and Events: which view shows what

Section titled “Overview, Invocations, and Events: which view shows what”

The dashboard organizes telemetry in three ways that answer different debugging questions:

View What you see Typical use
Overview Logs from all Workers in the account Cross–Worker incidents
Invocations Logs grouped by invocation (e.g. each fetch) Follow one request end to end
Events Logs in timestamp order Chronological timeline

Previously, account-level views were limited to a single Worker; the Query Builder GA announcement documents the unified account experience.

Query Builder and structured search: filter logs and traces by field

Section titled “Query Builder and structured search: filter logs and traces by field”

The Query Builder helps you write structured queries to investigate and visualize telemetry. It searches the Workers Observability dataset (currently logs stored by Workers Logs). The same queries can be run programmatically via the Workers Observability REST API (keys, query, and value listing endpoints), as noted on the Query Builder page.

The search bar supports free text and field-level filters; it stays in sync with the Query Builder sidebar. From Write structured queries to filter and search your Workers logs and traces:

  • Free text (e.g. error or "exact phrase")
  • Field comparisons (e.g. status = 500 or $workers.wallTimeMs > 100)
  • Operators =, !=, >, >=, <, <=, :
  • Functions such as contains(), startsWith(), regex(), exists()
  • Boolean AND, OR, NOT

The Query Builder is suited to questions like which paths return 5xx, wall time by status, slowest requests, or top users—see the walkthrough on Query Builder.

Recent UI capabilities from Visualize data, share links, and create exports with the new Workers Observability dashboard include in-dashboard visualizations, JSON/CSV export, shareable URLs for events and invocations, customizable table columns, inline event expansion, and keyboard shortcuts.

CPU time and Wall time: find slow or CPU-heavy invocations

Section titled “CPU time and Wall time: find slow or CPU-heavy invocations”

CPU time and Wall time are published for every Workers invocation. They appear in the invocation log for Workers Logs, and at the top level of Workers Trace Events for Tail Workers and Workers Logpush (CPU time and Wall time now published for Workers Invocations). New Logpush jobs include these fields by default; existing jobs must be updated to add them.

You can filter logs (for example wall time above 100ms) or use the Query Builder for median CPU and wall time across Workers (CPU time and Wall time now published for Workers Invocations).

Workers Metrics: versions, deployments, and performance charts

Section titled “Workers Metrics: versions, deployments, and performance charts”

The Workers Metrics tab is where you compare versions, watch gradual deployments, and chart resource use. Cloudflare revamped the Workers Metrics dashboard with a graphical time picker, histograms, version-focused legends, deployment monitoring, error rates by version and invocation status, and Smart Placement duration views.

The per-Worker Overview page (New Overview Page for Cloudflare Workers) surfaces requests, errors, and CPU time at a glance, bindings, and recent versions—the entry point before drilling into Metrics or Observability.

Memory usage chart: percentiles and the 128 MB per-isolate limit

Section titled “Memory usage chart: percentiles and the 128 MB per-isolate limit”

The Memory Usage chart on the Metrics tab reports V8 isolate memory at invocation time, in P50, P90, P99, and P999, subject to the 128 MB per-isolate limit (Track memory usage for Workers and Durable Objects in the dashboard). One isolate can serve many concurrent requests and shares memory across them.

Use the chart to spot upward trends (possible leaks before Exceeded Memory errors), correlate spikes with deployment markers, and estimate headroom under the 128 MB cap (Track memory usage for Workers and Durable Objects in the dashboard). For local diagnosis, Cloudflare points to DevTools heap snapshots on the same changelog entry.

Programmatically, the workersInvocationsAdaptive GraphQL dataset exposes quantiles.memoryUsageBytesP50 through quantiles.memoryUsageBytesP999 in bytes (Track memory usage for Workers and Durable Objects in the dashboard).

Release and gradual deployment annotations: tie regressions to rollouts

Section titled “Release and gradual deployment annotations: tie regressions to rollouts”

Metrics charts now show every release in the selected range, including full gradual deployment progression (See every release and gradual deployment on Workers Metrics charts). A gradual rollout appears as a shaded band; hover for previous and new versions, duration, and configured traffic percentage at each step.

Use annotations to see which traffic split was active when errors, latency, CPU, or wall time changed; compare stages as traffic shifts; and confirm rollbacks as separate release events (See every release and gradual deployment on Workers Metrics charts). Direct 100% deployments appear as markers; versions only uploaded or at 0% do not appear.

Durable Objects observability: namespace metrics, single objects, and storage

Section titled “Durable Objects observability: namespace metrics, single objects, and storage”

Durable Objects expose namespace-level and request-level analytics in the dashboard and via the GraphQL Analytics API. See Metrics and analytics for navigation: Durable Objects → namespace → Metrics, optional time window (default last 24 hours), and optional per-object filter.

Filter Metrics by Durable Object ID or name

Section titled “Filter Metrics by Durable Object ID or name”

You can narrow the Metrics tab to one object by ID or name (Filter Durable Objects metrics by object ID or name). Autocomplete only lists objects with invocations in the selected time range—absence does not prove deletion. All charts update for the selection; clear the filter for namespace aggregates.

Name search accepts up to 128 characters (formerly 20) on the Metrics filter and in Data Studio (Durable Object name search now supports 128 characters).

Metadata Read-Only access on the implementing Worker includes Durable Object metrics, logs, and traces without access to stored data (Durable Objects roles and permissions). KV-backed namespaces may lack the Total KV storage metric.

Memory usage for Durable Objects: isolate memory, not per-object RAM

Section titled “Memory usage for Durable Objects: isolate memory, not per-object RAM”

For Durable Objects, memory reflects in-memory state (properties, caches, active WebSockets) until hibernation or eviction; that state is not preserved across eviction, hibernation, or crash—persist important data to storage (Metrics and analytics — Memory usage).

Memory is measured per isolate, not per Durable Object. One isolate may host multiple objects of the same class plus the Worker; the chart reports whole-isolate memory (Metrics and analytics — Memory usage).

Filter mode What percentiles represent
Namespace (no filter) Distribution across periodic samples for all objects in the namespace
Filtered by ID or name Samples for that object only—but each sample is still the full isolate hosting it

The durableObjectsPeriodicGroups GraphQL dataset provides memoryUsageBytes and percentile quantiles (Metrics and analytics — Memory usage).

Total storage chart: SQLite namespaces only

Section titled “Total storage chart: SQLite namespaces only”

The Total storage chart shows maximum SQLite storage per hour for a namespace (View total SQLite storage for Durable Object namespaces). It appears only for SQLite-backed namespaces, not legacy key-value storage. Per-object storage by ID or name is not supported in this chart.

Deployments tab: versions, traffic split, and actual vs configured share

Section titled “Deployments tab: versions, traffic split, and actual vs configured share”

Durable Object namespaces include a read-only Deployments tab with live backing-Worker versions, traffic split, requests/sec, error rate, and median wall time per version (View deployments for Durable Objects in the dashboard). Promoting, rolling back, or splitting traffic still happens on the backing Worker’s Deployments tab.

The Traffic % column shows configured and actual observed share (View deployments for Durable Objects in the dashboard). Configured split assigns versions to Durable Object instances, not individual HTTP requests; each object stays on the version it started on until a new deployment, and hot objects skew observed vs configured splits. Actual share uses GraphQL Analytics data with normal ingestion delay and sampling; Durable Objects metrics can lag Workers metrics by several minutes.

Logs, traces, and instance ID: correlate one object instance

Section titled “Logs, traces, and instance ID: correlate one object instance”

Durable Object request logs and OpenTelemetry spans include the instance ID. Filter logs with $workers.durableObjectId; spans use cloudflare.durable_object.id (Filter Durable Object logs and traces by instance ID). The Durable Objects FAQ states the same field for log isolation.

Data Studio: inspect and edit SQLite Durable Object storage

Section titled “Data Studio: inspect and edit SQLite Durable Object storage”

Data Studio lets you view and write SQLite-backed Durable Object storage in the dashboard (View and edit Durable Object data in UI with Data Studio (Beta)). Only SQLite storage is supported.

Access requires appropriate roles (changelog mentions Workers Platform Admin; Data Studio notes at least Editor on the implementing Worker—follow current roles on that page). Queries hit deployed objects, incur normal usage billing, and are audit-logged (Data Studio). Each SQL statement in a multi-statement run is a separate Durable Object request.

Console exceptions in logs and Tail Worker errorInfo

Section titled “Console exceptions in logs and Tail Worker errorInfo”

When a Worker logs an exception via console methods, the log entry includes name, message, and stack (Preserve exception details in console logs). Workers Observability enriches these logs with structured error data in the dashboard.

Tail Workers receive an errorInfo array aligned by index with message arguments—non-exception arguments get null (Preserve exception details in console logs).

Container logs with Worker and Durable Object context

Section titled “Container logs with Worker and Durable Object context”

The Container logs page shows related Worker and Durable Object logs beside container output (Container logs page now includes relevant Worker and Durable Object logs). Filter by source to isolate Container, Worker, or Durable Object streams.

You can chart Workers Observability — Logs and Workers Observability — Traces (OTel) in Custom Dashboards next to HTTP, security, and DNS datasets (Workers Observability logs and traces in Custom Dashboards). Datasets require Workers Logs or Workers Traces enabled on the Worker. Accounts support up to 100 custom dashboards per Workers Observability logs and traces in Custom Dashboards.

Dynamic Workers billing-period invocation counts appear on the Workers overview and via GraphQL distinctDynamicWorkerCount (Track Dynamic Workers usage from the dashboard and GraphQL API); usage history starts June 1, 2026.

Common mistakes when reading Workers and Durable Object telemetry

Section titled “Common mistakes when reading Workers and Durable Object telemetry”
  1. In the Cloudflare dashboard, open Workers & Pages → your Worker → Observability and confirm Workers Logs (and Workers Traces if used) produce events in Overview or Invocations (Investigate your Workers with the Query Builder in the new Observability dashboard).

  2. Run a structured filter such as $workers.wallTimeMs > 100 or a 5xx path query in Observability and verify results match the Query Builder sidebar (Write structured queries to filter and search your Workers logs and traces).

  3. Open Metrics, enable version legend selection, and after a deploy confirm release or gradual-deployment markers align with error or latency changes (See every release and gradual deployment on Workers Metrics charts).

  4. For Durable Objects, open Durable Objects → namespace → Metrics, filter by a known object ID, and cross-check logs with $workers.durableObjectId (Filter Durable Objects metrics by object ID or name, Filter Durable Object logs and traces by instance ID).

  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about, and we will correct or clarify it.