observability worker turns that information into
OpenTelemetry traces, metrics, and logs:
This page is a quick tour. For the complete configuration and the full list of query functions,
see the observability worker docs.
OpenTelemetry support
observability is OpenTelemetry-based: it produces distributed traces across worker hops,
metrics, and structured logs, and it can export them to any OTel-compatible backend or keep them
in-memory for local development. Sampling, retention, and exporter targets are configured on the
worker; see the worker docs for the full set of options.
Logging
Worker code emits structured logs through theLogger from the observability SDK, which routes them
into the same OpenTelemetry pipeline (so log lines correlate with the trace they happened in) rather
than to raw stdout.
- Node / TypeScript
- Python
- Rust
Traces
A trace captures the spans of a call as it moves across workers, the headline view for debugging a request end to end. Traces come from worker function invocations: a worker records a span each time it handles a call. Built-inengine::* functions are not traced by default (set
III_OTEL_TRACE_BUILTINS=true to include them), so call a worker function first to produce a trace.
The sandbox worker’s sandbox::run is an easy one to start with:
engine::traces::tree needs a real trace_id and traces export on a short delay. If
engine::traces::list still reports 0 or the call above to get a trace_id resolves to null
and fails then wait a few seconds and try again.Health and clearing
Check engine health, or clear stored telemetry while developing:Logs populate quickly. It is possible to call
engine::logs::clear immediately followed by
engine::logs::list and still see new logs that were generated in between the two calls.