Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: OpenTelemetry does not work #7940

Open
enniofilicicchia opened this issue Jan 23, 2025 · 0 comments
Open

[Bug]: OpenTelemetry does not work #7940

enniofilicicchia opened this issue Jan 23, 2025 · 0 comments
Labels
bug Something isn't working mlops user request

Comments

@enniofilicicchia
Copy link

What happened?

I am self hosting Laminar, but OpenTelemetry logging does not even enter the method
Opentelemetry._handle_sucess in litellm.integrations.opentelemetry.py
or any of the logging methods.

litellm.callbacks = ["otel"]
os.environ["LMNR_PROJECT_API_KEY"] = (
"yyy"
)
os.environ["OTEL_EXPORTER"] = "otlp_grpc"
os.environ["OTEL_ENDPOINT"] = "http://mydomain.com:8000"
os.environ["OTEL_HEADERS"] = (
f"authorization=Bearer {os.environ["LMNR_PROJECT_API_KEY"]}"
)
os.environ["DEBUG_OTEL"] = "true"

I followed the debug run and no logging method of OpenTelemetry ever enters.
OpenTelemetry is well adopted, it would be cool to have a working reliable integration!

Relevant log output

Are you a ML Ops Team?

Yes

What LiteLLM version are you on ?

v1.59.3

Twitter / LinkedIn details

https://www.linkedin.com/in/ennio-filicicchia/

@enniofilicicchia enniofilicicchia added the bug Something isn't working label Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mlops user request
Projects
None yet
Development

No branches or pull requests

1 participant