Ray applications produce distributed traces at the application layer (FastAPI, vLLM, your code). Ray-internal tracing of tasks and actors is gated behind a feature flag.Documentation Index
Fetch the complete documentation index at: https://ray-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Instrument FastAPI
await DeploymentHandle.remote(...) calls when the OpenTelemetry context is set.
Cross-service propagation
Use thetraceparent HTTP header (W3C trace context). FastAPI’s instrumentation reads and writes it automatically; for raw clients, attach the header manually.
Custom spans
Where to send traces
Any OpenTelemetry-compatible backend: Tempo, Jaeger, Honeycomb, Datadog, Lightstep, etc. Configure with theOTLPSpanExporter endpoint.
Ray-internal spans
For low-level Ray spans, setRAY_BACKEND_LOG_LEVEL=debug and configure an OTLP exporter. This is rarely needed unless you’re debugging Ray itself.
Next steps
Metrics
Pair traces with metrics.
State API
Programmatic cluster inspection.