openinference-instrumentation-pydantic-ai
OpenInference PydanticAI Instrumentation
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, installs with low friction, and directly solves the problem of observing PydanticAI agents. If you're running PydanticAI in production or need visibility into agent behavior, this is the standard instrumentation library. The Apache-2.0 license is permissive for commercial use.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; OpenTelemetry SDK and an exporter (e.g., OTLP) must be installed separately to send traces to a collector.
- Low friction: pure Python wheel with seven runtime dependencies already in the OpenTelemetry and OpenInference ecosystems.
- Active maintenance—released 2 days ago with a 1147-star repository and continuous commits.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most production environments.
last release 2026-08-12 (2 days) · last repo commit 2026-08-14 · 1,147 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 375,482 downloads/mo, #7,137 on PyPI
Alternatives
Verify before relying
pip install openinference-instrumentation-pydantic-ai
from openinference.instrumentation.pydantic_ai import OpenInferenceSpanProcessor
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import SimpleSpanProcessor
tracer_provider = TracerProvider()
tracer_provider.add_span_processor(OpenInferenceSpanProcessor())
tracer_provider.add_span_processor(SimpleSpanProcessor(exporter))- Whether the package supports PydanticAI versions beyond what the fact sheet indicates.
- Performance overhead of instrumentation on agent execution latency.
- Whether custom span processors or filtering options are available beyond the documented quickstart.
What it is and what it does
This package adds automatic tracing to PydanticAI agents by wrapping their execution with OpenTelemetry instrumentation. It captures agent interactions, model calls, and reasoning steps as structured spans that conform to the OpenInference standard, making them viewable in observability platforms like Arize Phoenix and Arize AX. The instrumentation is transparent—you enable it by adding a span processor to your tracer provider, and all subsequent agent runs emit traces without code changes to your agent logic.
The package is built on top of the OpenInference instrumentation framework and depends on OpenTelemetry's core APIs and semantic conventions. It's designed for developers who want to monitor, debug, and analyze PydanticAI agent behavior in development and production environments. The traces can be exported to any OpenTelemetry-compatible backend, giving you flexibility in where and how you store and visualize agent execution data.
Use it for
- Debug PydanticAI agent reasoning and model interactions by viewing detailed traces in Phoenix or Arize AX.
- Monitor agent performance and latency across model calls in production environments.
- Analyze agent behavior patterns and identify bottlenecks or failure modes.
- Track structured outputs and model responses for compliance or audit purposes.
- Correlate agent traces with other application telemetry in a unified observability platform.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no known vulnerabilities, installs with low friction, and directly solves the problem of observing PydanticAI agents. If you're running PydanticAI in production or need visibility into agent behavior, this is the standard instrumentation library. The Apache-2.0 license is permissive for commercial use.
Install
openinference-instrumentation-pydantic-ai on PyPI
Before you install
Low friction: pure Python wheel with seven runtime dependencies already in the OpenTelemetry and OpenInference ecosystems. Active maintenance—released 2 days ago with a 1147-star repository and continuous commits.
Requires Python 3.10 or later; OpenTelemetry SDK and an exporter (e.g., OTLP) must be installed separately to send traces to a collector.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most production environments.
Quickstart
pip install openinference-instrumentation-pydantic-ai
from openinference.instrumentation.pydantic_ai import OpenInferenceSpanProcessor
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import SimpleSpanProcessor
tracer_provider = TracerProvider()
tracer_provider.add_span_processor(OpenInferenceSpanProcessor())
tracer_provider.add_span_processor(SimpleSpanProcessor(exporter))
Verify before relying
- Whether the package supports PydanticAI versions beyond what the fact sheet indicates.
- Performance overhead of instrumentation on agent execution latency.
- Whether custom span processors or filtering options are available beyond the documented quickstart.
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 | 7 packagesopeninference-instrumentationopeninference-semantic-conventionsopentelemetry-apiopentelemetry-instrumentationopentelemetry-semantic-conventionstyping-extensionswrapt |
| Maintenance | Actively maintained 2 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 375,482 / month, #7,137 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_pydantic_ai-0.1.20-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 › “pydantic ai instrumentation”
- openinference-instrumentation-pydantic-aiAuto-instruments PydanticAI agents to emit OpenTelemetry traces…
- mlflow-tracingInstrument GenAI applications with distributed tracing to log…
- raindrop-aiInstrument LLM applications with event tracking and…
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 logfire · openinference-instrumentation-agno · openinference-instrumentation-google-genai · openinference-instrumentation-crewai · openinference-instrumentation-anthropic · openinference-instrumentation-dspy · arize · openinference-instrumentation-claude-agent-sdk · openinference-instrumentation-google-adk · openinference-instrumentation-llama-index