vllm.tracing.utils ¶
Classes:
-
LoadingSpanAttributes–Custom attributes for code-level tracing (file, line number).
-
SpanAttributes–Standard attributes for spans.
Functions:
-
contains_trace_headers–Check if the provided headers dictionary contains trace context.
-
extract_trace_headers–Extract only trace-related headers from a larger header dictionary.
LoadingSpanAttributes ¶
Custom attributes for code-level tracing (file, line number).
Source code in vllm/tracing/utils.py
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.
Source code in vllm/tracing/utils.py
contains_trace_headers(headers) ¶
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.