About
Forward OpenTelemetry traces from your LangChain application into Sazabi. LangChain does not emit OpenTelemetry on its own — you add an instrumentation package such as OpenInference that creates spans for your chains, tools, and LLM calls, then point those spans at a Sazabi endpoint.Prerequisites
- A Python or TypeScript/JavaScript LangChain application. These are the only runtimes with a LangChain OpenInference package today.
- Your Sazabi intake URL (shown above).
Set up in the dashboard
1
Install and initialize OpenInference
Install the OpenInference instrumentation for your LangChain runtime and run the initialization snippet once at startup before importing LangChain.Python2
Set OTLP environment variables
Set these environment variables in your application environment so they are present when the process starts. The OpenTelemetry SDK reads them automatically.OTEL_EXPORTER_OTLP_ENDPOINT— your intake URL (shown above)OTEL_EXPORTER_OTLP_PROTOCOL—http/protobuf
3
Hand off the change
Commit these changes on a new branch, push it, and open a pull request. Keep the intake URL and any keys in environment variables or a secret store, and commit only configuration that references them.Set up with the CLI
You can also register the LangChain log source with the Sazabi CLI (installed and authenticated — see CLI reference). Registering the source mints the same intake URL the dashboard shows above (the public key is embedded in its hostname):sazabi log-sources get <log-source-id> at any time to reprint the endpoint, or sazabi log-sources list to see every log source in the project.
Verify
Run a chain or agent invocation. Open the Intake page in the Sazabi dashboard and confirm traces from the LangChain source appear. Traces typically arrive within a minute or two of the invocation.Troubleshooting
No traces appear — For Python, verifyLangChainInstrumentor().instrument() runs before any LangChain import. For TypeScript, confirm manuallyInstrument(CallbackManagerModule) is called before any chain or agent runs.
Spans arrive but carry no LLM attributes — Token counts and model names come from the LLM client’s response. If the provider does not return usage data, those fields are absent from the span.
Further reading
Intake
See per-source ingestion volume and health in the Intake page.
Instrument
Learn how to send data to Sazabi.
Log sources
Browse the full log source catalog.