Dynamo supports OpenTelemetry-based distributed tracing for visualizing request flows across Frontend and Worker components. Traces are exported to Tempo via OTLP (OpenTelemetry Protocol) and visualized in Grafana.
Requirements: Set DYN_LOGGING_JSONL=true and OTEL_EXPORT_ENABLED=true to export traces to Tempo.
Note: When OTLP export is enabled, Dynamo exports both traces and logs. Traces are sent to Tempo and logs are sent to Loki (via the OpenTelemetry Collector). To send logs to a separate endpoint, set OTEL_EXPORTER_OTLP_LOGS_ENDPOINT; otherwise it defaults to the traces endpoint. See Logging for details.
This guide covers single GPU demo setup using Docker Compose. For Kubernetes deployments, see Kubernetes Deployment.
Note: This section has overlap with Logging of OpenTelemetry Tracing since OpenTelemetry has aspects of both logging and tracing. The tracing approach documented here is for persistent trace visualization and analysis. For short debugging sessions examining trace context directly in logs, see the Logging guide.
Start the observability stack (Prometheus, Grafana, Tempo, exporters). See Observability Getting Started for instructions.
For a simple single-GPU deployment, run the aggregated tracing launch script. This script enables tracing, sets per-component service names, and starts a frontend with a single vLLM worker:
To override the Tempo endpoint (default http://localhost:4317):
This runs a single aggregated worker on one GPU, providing a simpler setup for testing tracing.
For a disaggregated deployment with tracing, run the disaggregated tracing launch script. This script sets up tracing and launches a frontend, a decode worker on GPU 0, and a prefill worker on GPU 1:
This separates prefill and decode onto different GPUs for better resource utilization.
Send requests to the frontend to generate traces (works for both aggregated and disaggregated deployments). The launch scripts print an example curl command on startup with the correct model name.
Tip: Add an x-request-id header to easily search for a specific trace in Grafana:
http://localhost:3000dynamo and password dynamodynamo-frontend)http-request, handle_payload)x_request_id=test-trace-001)Below is an example of what a trace looks like in Grafana Tempo:

When done, stop the observability stack. See Observability Getting Started for Docker Compose commands.
For Kubernetes deployments, ensure you have a Tempo instance deployed and accessible (e.g., http://tempo.observability.svc.cluster.local:4317).
Tracing-enabled variants of the example deployments are provided:
examples/backends/vllm/deploy/agg_tracing.yamlexamples/backends/vllm/deploy/disagg_tracing.yamlThese add the Environment Variables to the base agg.yaml / disagg.yaml deployments. To override the Tempo endpoint, edit OTEL_EXPORTER_OTLP_TRACES_ENDPOINT in the YAML.
Apply a tracing-enabled deployment:
Traces will now be exported to Tempo and can be viewed in Grafana.