Skip to content

For the complete documentation index, see llms.txt.

Observability

Observability in the worker today is scoped to analysis. This page describes what ships now and what is coming.

Each Friction Analyzer attempt runs in a child process launched under ddtrace-run, so analysis emits Datadog APM and LLM Observability spans. The child honors the standard Datadog environment variables you set on the worker and enables LLM Observability. If you already run a Datadog agent, set these variables in your worker configuration so analysis spans reach it:

VariablePurpose
DD_ENVThe environment tag applied to analysis spans.
DD_SITEThe Datadog site the agent reports to.
DD_AGENT_HOSTThe host of the Datadog agent that receives the spans.
DD_TRACE_*The standard Datadog tracer settings, passed through as set.

You set these alongside the worker’s other environment variables when you deploy the analyzer worker.

Forthcoming: worker-wide Datadog and Sentry

Section titled “Forthcoming: worker-wide Datadog and Sentry”

First-class, worker-wide observability — starting the whole worker under Datadog tracing and reporting errors to Sentry — is in progress and not yet shipped. When it lands, this page documents the configuration it introduces. Until then, configure only the analysis tracing described above; there is no supported worker-wide Datadog or Sentry configuration to set yet.