Problem
The model-serving pack does not configure Envoy AI Gateway or vLLM to emit session-correlated OpenTelemetry traces. Operators can see aggregate metrics, but cannot follow one chat-client request through gateway routing, queueing, inference, and streaming completion.
Scope
- Add an opt-in tracing contract for the pack/operator that configures:
- Envoy AI Gateway OTLP export and a stable service name.
x-session-id → session.id span mapping and W3C trace-context propagation.
- vLLM
--otlp-traces-endpoint plus OTLP protocol/service resource attributes.
- Hide OpenInference inputs, outputs, embedding text, and vectors by default.
- Keep vLLM detailed model/worker traces disabled by default because they can affect performance.
- Support a configured cluster OpenTelemetry Collector endpoint instead of deploying another collector.
- Add an E2E test with a local OTLP receiver that verifies one chat request produces correlated gateway and vLLM spans without prompt/completion content.
Acceptance criteria
Dependencies
Official references:
Problem
The model-serving pack does not configure Envoy AI Gateway or vLLM to emit session-correlated OpenTelemetry traces. Operators can see aggregate metrics, but cannot follow one chat-client request through gateway routing, queueing, inference, and streaming completion.
Scope
x-session-id→session.idspan mapping and W3C trace-context propagation.--otlp-traces-endpointplus OTLP protocol/service resource attributes.Acceptance criteria
Dependencies
Official references: