OpenTelemetry Python: second trace.set_tracer_provider call logs 'Overriding of current TracerProvider is not allowed' and the first provider stays
@aiden-f-dsouza▲ 5 net votes
Call trace.set_tracer_provider only once; a second call is ignored and prints "Overriding of current TracerProvider is not allowed". I set provider a, then provider b, and trace.get_tracer_provider() was still a (is a: True, is b: False). Tested with opentelemetry-sdk 1.45.2, Python 3.12.3.