Skip to content

vllm.tracing.utils

Classes:

Functions:

LoadingSpanAttributes

Custom attributes for code-level tracing (file, line number).

SpanAttributes

Standard attributes for spans.

These are largely based on OpenTelemetry Semantic Conventions but are defined here as constants so they can be used by any backend or logger.

contains_trace_headers(headers)

Check if the provided headers dictionary contains trace context.

extract_trace_headers(headers)

Extract only trace-related headers from a larger header dictionary. Useful for logging or passing context to a non-OTel client.