Observability
ObservabilityTelemetry
List keys
Run a query
List values
ModelsExpand Collapse
TelemetryQueryResponse { run, statistics, agents, 5 more }
run: { id, accountId, dry, 8 more } A Workers Observability Query Object
A Workers Observability Query Object
query: { id, adhoc, created, 6 more }
parameters: { calculations, datasets, filterCombination, 6 more }
calculations: optional array of { operator, alias, key, keyType } Create Calculations to compute as part of the query.
Create Calculations to compute as part of the query.
Set the Datasets to query. Leave it empty to query all the datasets.
filterCombination: optional "and" or "or" or "AND" or "OR"Set a Flag to describe how to combine the filters on the query.
Set a Flag to describe how to combine the filters on the query.
filters: optional array of { filterCombination, filters, kind } or { key, operation, type, 2 more } Configure the Filters to apply to the query. Supports nested groups via kind: ‘group’.
Configure the Filters to apply to the query. Supports nested groups via kind: ‘group’.
WorkersObservabilityFilterLeaf { key, operation, type, 2 more } Filtering best practices: use observability_keys and observability_values to confirm available fields and values. If searching for errors, filter for $metadata.error exists.
Filtering best practices: use observability_keys and observability_values to confirm available fields and values. If searching for errors, filter for $metadata.error exists.
Filter field name. IMPORTANT: do not guess keys. Always use verified keys from previous query results or the observability_keys response. Preferred keys: $metadata.service, $metadata.origin, $metadata.trigger, $metadata.message, $metadata.error.
value: optional string or number or booleanFilter comparison value. IMPORTANT: must match actual values in your logs. Verify using previous query results or the /values endpoint. Ensure value type matches the field type. String comparisons are case-sensitive unless using specific operations. Regex uses ClickHouse RE2 syntax (no lookaheads/lookbehinds); examples: ^5\d{2}$ for HTTP 5xx, \bERROR\b for word boundary.
Filter comparison value. IMPORTANT: must match actual values in your logs. Verify using previous query results or the /values endpoint. Ensure value type matches the field type. String comparisons are case-sensitive unless using specific operations. Regex uses ClickHouse RE2 syntax (no lookaheads/lookbehinds); examples: ^5\d{2}$ for HTTP 5xx, \bERROR\b for word boundary.
havings: optional array of { key, operation, value } Configure the Having clauses that filter on calculations in the query result.
Configure the Having clauses that filter on calculations in the query result.
Set a limit on the number of results / records returned by the query
statistics: { bytes_read, elapsed, rows_read, abr_level } The statistics object contains information about query performance from the database, it does not include any network latency
The statistics object contains information about query performance from the database, it does not include any network latency
calculations: optional array of { aggregates, calculation, series, alias }
compare: optional array of { aggregates, calculation, series, alias }
events: optional { count, events, fields, series }
events: optional array of { "$metadata", dataset, source, 3 more }
Cloudflare Containers event information enriches your logs so you can easily identify and debug issues.
"$workers": optional { eventType, requestId, scriptName, 7 more } or { cpuTimeMs, eventType, outcome, 11 more } Cloudflare Workers event information enriches your logs so you can easily identify and debug issues.
Cloudflare Workers event information enriches your logs so you can easily identify and debug issues.
{ eventType, requestId, scriptName, 7 more }
invocations: optional map[array of { "$metadata", dataset, source, 3 more } ]
Cloudflare Containers event information enriches your logs so you can easily identify and debug issues.
"$workers": optional { eventType, requestId, scriptName, 7 more } or { cpuTimeMs, eventType, outcome, 11 more } Cloudflare Workers event information enriches your logs so you can easily identify and debug issues.
Cloudflare Workers event information enriches your logs so you can easily identify and debug issues.