openinference-instrumentation-langchain
OpenInference LangChain Instrumentation
Decision gist · record as of 2026-08-14
Yes, if you are building or maintaining LangChain applications and need visibility into execution. The package is actively maintained, has no known vulnerabilities, installs with low friction, and integrates seamlessly with standard observability infrastructure. The Apache-2.0 license poses no barrier. Install it alongside an OpenTelemetry collector (Arize Phoenix is free and local) to enable immediate tracing.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires an OpenTelemetry collector endpoint (e.g., Arize Phoenix) to receive and view traces; local Phoenix server can be started with `python -m phoenix.server.main serve`.
- Low friction install with a pure-Python wheel.
- The package is actively maintained (last commit 2026-08-14, release 7 days old) and supports current Python versions (3.10–3.14).
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows use in commercial and proprietary projects with minimal restrictions; attribution required.
last release 2026-08-07 (7 days) · last repo commit 2026-08-14 · 1,147 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,470,274 downloads/mo, #2,612 on PyPI
Alternatives
Verify before relying
pip install openinference-instrumentation-langchain
from openinference.instrumentation.langchain import LangChainInstrumentor
from opentelemetry.sdk import trace as trace_sdk
from opentelemetry.sdk.trace.export import SimpleSpanProcessor
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
tracer_provider = trace_sdk.TracerProvider()
tracer_provider.add_span_processor(SimpleSpanProcessor(OTLPSpanExporter("http://localhost:6006/v1/traces")))
LangChainInstrumentor().instrument()- Whether instrumentation overhead is measurable for high-throughput LangChain applications.
- Support status and compatibility timeline for LangChain Classic vs. LangChain 1.x migration path.
What it is and what it does
This package wraps LangChain to automatically capture execution traces and send them to OpenTelemetry collectors like Arize Phoenix or Arize AX. It hooks into langchain-core to intercept calls across all LangChain packages (langchain-openai, langchain-anthropic, langchain-google-vertexai, etc.) and works with both the modern LangChain 1.x agent framework and the legacy LangChain Classic chains API.
Once instrumented, every LangChain operation—agent steps, tool calls, LLM invocations, prompt templates—generates a span that can be viewed in a web dashboard for debugging, performance analysis, and tracing AI application behavior. It requires an OpenTelemetry exporter and collector endpoint to function; Arize Phoenix is the recommended local option.
Use it for
- Debug LangChain agent behavior by viewing step-by-step execution traces in Arize Phoenix.
- Monitor LLM API calls and token usage across langchain-openai, langchain-anthropic, and other partner packages.
- Trace tool execution and error propagation in multi-step agent workflows.
- Collect structured metadata and session information from LangChain runs for post-analysis.
- Migrate legacy LangChain Classic applications while maintaining observability during the transition to LangChain 1.x.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building or maintaining LangChain applications and need visibility into execution.
The package is actively maintained, has no known vulnerabilities, installs with low friction, and integrates seamlessly with standard observability infrastructure. The Apache-2.0 license poses no barrier. Install it alongside an OpenTelemetry collector (Arize Phoenix is free and local) to enable immediate tracing.
Install
openinference-instrumentation-langchain on PyPI
Before you install
Low friction install with a pure-Python wheel. The package is actively maintained (last commit 2026-08-14, release 7 days old) and supports current Python versions (3.10–3.14). Six runtime dependencies are all standard observability libraries.
Requires an OpenTelemetry collector endpoint (e.g., Arize Phoenix) to receive and view traces; local Phoenix server can be started with `python -m phoenix.server.main serve`.
License in practice
Apache-2.0 permissive license allows use in commercial and proprietary projects with minimal restrictions; attribution required.
Quickstart
pip install openinference-instrumentation-langchain
from openinference.instrumentation.langchain import LangChainInstrumentor
from opentelemetry.sdk import trace as trace_sdk
from opentelemetry.sdk.trace.export import SimpleSpanProcessor
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
tracer_provider = trace_sdk.TracerProvider()
tracer_provider.add_span_processor(SimpleSpanProcessor(OTLPSpanExporter("http://localhost:6006/v1/traces")))
LangChainInstrumentor().instrument()
Verify before relying
- Whether instrumentation overhead is measurable for high-throughput LangChain applications.
- Support status and compatibility timeline for LangChain Classic vs. LangChain 1.x migration path.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release <3.15,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 6 packagesopeninference-instrumentationopeninference-semantic-conventionsopentelemetry-apiopentelemetry-instrumentationopentelemetry-semantic-conventionswrapt |
| Maintenance | Actively maintained 7 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,470,274 / month, #2,612 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: openinference_instrumentation_langchain-0.1.70-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “langchain observability”
- openinference-instrumentation-langchainAuto-instruments LangChain applications to generate…
- traceloop-sdkTraceloop SDK instruments LLM applications to capture execution…
- braintrust-langchainProvides a LangChain callback handler to log LangChain executions to…
Give your agent the search over MCP, or paste the wish link into any chat.
More Monitoring packages
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.
Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.
Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.
Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.
Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.
Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.
Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.
Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.
See also openinference-instrumentation-openai · openinference-semantic-conventions · openinference-instrumentation-agno · openinference-instrumentation-google-genai · openinference-instrumentation-google-adk · openinference-instrumentation · openinference-instrumentation-claude-agent-sdk · openinference-instrumentation-llama-index · openinference-instrumentation-openai-agents · braintrust-langchain