Arize-ai / openinference

Auto-Instrumentation for AI Observability
https://arize-ai.github.io/openinference/
Apache License 2.0
146 stars 22 forks source link

use `.instrument(tracer_provider=tracer_provider)` in our examples #372

Open RogerHYang opened 2 months ago

RogerHYang commented 2 months ago

We should use .instrument(tracer_provider=tracer_provider) in our examples, instead of trace_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.

mikeldking commented 2 months ago

Removing triage flag for now