mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix - otel log db / redis calls
This commit is contained in:
parent
b2f4cd9b56
commit
498d7d4228
1 changed files with 4 additions and 0 deletions
|
@ -35,6 +35,10 @@ def initialize_callbacks_on_proxy(
|
|||
|
||||
open_telemetry_logger = OpenTelemetry()
|
||||
|
||||
# Add Otel as a service callback
|
||||
if "otel" not in litellm.service_callback:
|
||||
litellm.service_callback.append("otel")
|
||||
|
||||
imported_list.append(open_telemetry_logger)
|
||||
setattr(proxy_server, "open_telemetry_logger", open_telemetry_logger)
|
||||
elif isinstance(callback, str) and callback == "presidio":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue