opentelemetry-python icon indicating copy to clipboard operation
opentelemetry-python copied to clipboard

Allow resetting global providers

Open lmolkova opened this issue 7 months ago • 1 comments

Some frameworks do some questionable things, like setting global OTel provider to export telemetry to their own destination e.g. https://github.com/Chainlit/chainlit/blob/6ec007032945dfd6a1a608cc3c8074bd2f643d0c/backend/chainlit/telemetry.py#L65

It must be possible to override their configuration. Currently once global tracer/metrics/logs provider is set, there is no way to override it.

Related: https://github.com/Chainlit/chainlit/issues/2127

lmolkova avatar Apr 21 '25 19:04 lmolkova

@lmolkova

I'm assuming you are asking for functionality to ALLOW overriding of the global trace provider (like an option), not change the way the api works right?

lzchen avatar Apr 24 '25 16:04 lzchen