fix otel logging fixes

This commit is contained in:
Ishaan Jaff 2024-06-04 08:53:33 -07:00
parent 009c63f194
commit e96d2e3b1b
2 changed files with 8 additions and 0 deletions

View file

@ -2399,6 +2399,12 @@ class ProxyConfig:
and callback in known_compatible_callbacks
):
imported_list.append(callback)
elif isinstance(callback, str) and callback == "otel":
from litellm.integrations.opentelemetry import (
OpenTelemetry,
)
imported_list.append(OpenTelemetry())
elif isinstance(callback, str) and callback == "presidio":
from litellm.proxy.hooks.presidio_pii_masking import (
_OPTIONAL_PresidioPIIMasking,