Skip to main content

16. Monitoring

Tracing

Application Insights receives a trace for every activity call and every worker update, with the run id and task reference. Model calls carry OpenTelemetry gen_ai attributes: model, tokens in and out, latency. Log Analytics keeps the audit trail: who started, changed, or decided what.

Custom metrics

MetricDimensions
queue_depthtask type
poll_latencytask type
task_durationtask type, status
llm_tokensmodel, workflow
human_gate_waitworkflow
run_durationworkflow, status

Operator views

  1. The Durable Task Scheduler dashboard: raw orchestration state, for debugging.
  2. Azure Monitor workbooks: runs by status, queue depth, worker liveness, model spend.
  3. A Static Web App over the engine API: search runs, open one, see each task's input and output, apply run control.