$npx skillfedfor your agent

openinference-instrumentation-langchain

OpenInference LangChain Instrumentation

With conditionsPyPI MonitoringReleased Aug 20263.5M downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — openinference_instrumentation_langchain-0.1.70-py3-none-any.whl
v0.1.70 · released 2026-08-07 · Python <3.15,>=3.10 · 6 runtime deps: openinference-instrumentation, openinference-semantic-conventions, opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions, wrapt

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

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.
Same gist for agents: .md · .json

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.

With conditions

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

LicenseApache-2.0 permissive
Python supportSupports the current Python release <3.15,>=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
6 packages
openinference-instrumentationopeninference-semantic-conventionsopentelemetry-apiopentelemetry-instrumentationopentelemetry-semantic-conventionswrapt
MaintenanceActively maintained 7 days since the last release
Last repo commit
First released
Downloads3,470,274 / month, #2,612 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
langchain tracing instrumentationopentelemetry langchainlangchain observabilitylangchain span collectionlangchain debugging tracesai agent monitoringllm application tracing
Topics
observabilitylangchainopentelemetry

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”

Give your agent the search over MCP, or paste the wish link into any chat.

More Monitoring packages

tqdm Worth it
PyPI · Libraries · released Jul 2026

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.

copyleftpure Python · 3.8+
648.6Mdownloads / mo
opentelemetry-semantic-conventions Worth it
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
542.9Mdownloads / mo
opentelemetry-sdk Worth it
PyPI · Monitoring · released Jul 2026

Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.

Apache-2.0pure Python · 3.10+
521.8Mdownloads / mo
opentelemetry-api With conditions
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
463.8Mdownloads / mo
opentelemetry-exporter-otlp-proto-http Worth it
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
409.9Mdownloads / mo
opentelemetry-instrumentation Worth it
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
393.5Mdownloads / mo

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