In code (Python)
Add an OTLP exporter to your own tracer provider.terminal
raw_otlp.py
Environment variables only
OpenTelemetry’s own launcher,opentelemetry-instrument, configures the exporter from environment variables and turns on the instrumentors you’ve installed. This example traces an unmodified LangChain app through the OpenInference LangChain instrumentor. Install your framework’s instrumentor instead. See the instrumentor packages.
terminal
terminal
app.py
terminal
%20 is the space after Bearer.
Forward traces from any exporter
Send your OpenTelemetry traces directly to BotGauge.
Through an OpenTelemetry Collector
If your apps already send to a Collector, add BotGauge as an exporter. The key stays in the Collector, so your apps don’t need it. Start the Collector withBOTGAUGE_API_KEY set.
collector.yaml
terminal
app.py and opentelemetry-instrument.
terminal
otlphttp (used here) or otlp_http..png?fit=max&auto=format&n=rExdh2xAS2_ywWU5&q=85&s=2336659947d2543be68f95bf2d539b85)