MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT-LLM / extract_trace_context

Function extract_trace_context

tensorrt_llm/llmapi/tracing.py:93–99  ·  view source on GitHub ↗
(
        headers: Optional[Mapping[str, str]])

Source from the content-addressed store, hash-verified

91
92
93def extract_trace_context(
94 headers: Optional[Mapping[str, str]]) -> Optional[Context]:
95 if is_otel_available():
96 headers = headers or {}
97 return TraceContextTextMapPropagator().extract(headers)
98 else:
99 return None
100
101
102def extract_trace_headers(

Callers 1

async_wrapperFunction · 0.85

Calls 1

is_otel_availableFunction · 0.85

Tested by

no test coverage detected