mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
minor fix - _debug_otel
This commit is contained in:
parent
95eb762cc7
commit
090f350169
1 changed files with 3 additions and 1 deletions
|
@ -66,7 +66,9 @@ class OpenTelemetry(CustomLogger):
|
||||||
trace.set_tracer_provider(provider)
|
trace.set_tracer_provider(provider)
|
||||||
self.tracer = trace.get_tracer(LITELLM_TRACER_NAME)
|
self.tracer = trace.get_tracer(LITELLM_TRACER_NAME)
|
||||||
|
|
||||||
if bool(os.getenv("DEBUG_OTEL", False)) is True:
|
_debug_otel = str(os.getenv("DEBUG_OTEL", "False")).lower()
|
||||||
|
|
||||||
|
if _debug_otel == "true":
|
||||||
# Set up logging
|
# Set up logging
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue