We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f8b0ab commit 9fa949eCopy full SHA for 9fa949e
vllm/tracing.py
@@ -41,6 +41,8 @@ def is_otel_installed() -> bool:
41
42
def init_tracer(instrumenting_module_name: str,
43
otlp_traces_endpoint: str) -> Optional[Tracer]:
44
+ assert is_otel_installed(), ("OpenTelemetry packages must be installed "
45
+ "prior to initializing a tracer")
46
trace_provider = TracerProvider()
47
48
span_exporter = get_span_exporter(otlp_traces_endpoint)
0 commit comments