0

Currently, I'm instrumenting a python application using open-telemetry and jaeger. I was wondering if there is a way or a workaround to instantiate many instances of the the TraceProvider class, within the same multi-threaded application. I know I shouldn't do this, but I have my own reason :) The problem I'm facing is that the function set_tracer_provider() is implemented to be called only once. Is there any opentelemetry expert who can advise me on how to achieve this?

Many thanks.

  • Maybe that helps: https://opentelemetry.io/docs/instrumentation/python/cookbook/#using-multiple-tracer-providers-with-different-resource – Juliano Costa Oct 20 '22 at 20:45

0 Answers0