use .instrument(tracer_provider=tracer_provider)
in our examples
#372
Labels
documentation
Improvements or additions to documentation
examples
Related to the examples in the repo
help wanted
Extra attention is needed
We should use
.instrument(tracer_provider=tracer_provider)
in our examples, instead oftrace_api.set_tracer_provider(tracer_provider)
because users may be working in a (production) system where there's an already an incumbent OTEL tracer provider (and exporter). This results in confusion because our instrumentor won't get the proper exporter and nothing gets exported.The text was updated successfully, but these errors were encountered: