Skip to content

[Bug]: OpenTelemetry endpoint environment variable is incorrect #13942

@edwarddamato

Description

@edwarddamato

What happened?

The OpenTelemetry documentation for HTTP and GRPC collectors refers to using the OTEL_EXPORTER_OTLP_ENDPOINT env var. As this is used to then log traces to OpenTelemetry, I believe this should actually use the OTEL_EXPORTER_OTLP_TRACES_ENDPOINT env var as per OpenTelemetry's docs.

Both OTLPSpanExporterGRPC and OTLPSpanExporterHTTP classes expect the /v1/traces env var to be present first, so LiteLLM should expect this as well.

Happy to open a PR for this, but I'd like to hear what others think first.

Relevant log output

Are you a ML Ops Team?

No

What LiteLLM version are you on ?

v1.75.9-nightly

Twitter / LinkedIn details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions