mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
(Bug fix) dd-trace used by default on litellm proxy (#8817)
* fix _should_use_dd_tracer * fix _should_use_dd_tracer * _should_use_dd_tracer * _should_use_dd_tracer * _should_use_dd_tracer * _init_dd_tracer * _should_use_dd_tracer * fix should use dd-tracer * fix dd tracer
This commit is contained in:
parent
11fd5094c7
commit
c3335ac90a
4 changed files with 36 additions and 10 deletions
|
@ -3388,7 +3388,9 @@ class ProxyStartupEvent:
|
|||
DD tracer is used to trace Python applications.
|
||||
Doc: https://docs.datadoghq.com/tracing/trace_collection/automatic_instrumentation/dd_libraries/python/
|
||||
"""
|
||||
if get_secret_bool("USE_DDTRACE", False) is True:
|
||||
from litellm.litellm_core_utils.dd_tracing import _should_use_dd_tracer
|
||||
|
||||
if _should_use_dd_tracer():
|
||||
import ddtrace
|
||||
|
||||
ddtrace.patch_all(logging=True, openai=False)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue