OpenInference Agno Instrumentation
Python auto-instrumentation library for Agno Agents
The following instrumentation is fully OpenTelemetry-compatible and can be sent to an OpenTelemetry collector for monitoring, such as Arize Phoenix, Arize AX, or Langfuse.
Installation
pip install openinference-instrumentation-agno
Quickstart
This quickstart shows you how to instrument your Agno Agent application.
You've already installed openinference-instrumentation-agno. Next is to install packages for agno,
Phoenix and opentelemetry-instrument, which exports traces to it.
pip install agno arize-phoenix opentelemetry-sdk opentelemetry-exporter-otlp-proto-grpc opentelemetry-distro
Start the Phoenix app in the background as a collector:
phoenix serve
By default, it listens on http://localhost:6006. You can visit the app via a browser at the same address.
The Phoenix app does not send data over the internet. It only operates locally on your machine.
Create a simple Agno agent:
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.tools.duckduckgo import DuckDuckGoTools
from openinference.instrumentation.agno import AgnoInstrumentor
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
from opentelemetry.sdk import trace as trace_sdk
from opentelemetry import trace as trace_api
from opentelemetry.sdk.trace.export import ConsoleSpanExporter, SimpleSpanProcessor
endpoint = "http://127.0.0.1:6006/v1/traces"
tracer_provider = trace_sdk.TracerProvider()
tracer_provider.add_span_processor(SimpleSpanProcessor(OTLPSpanExporter(endpoint)))
# Optionally, you can also print the spans to the console.
tracer_provider.add_span_processor(SimpleSpanProcessor(ConsoleSpanExporter()))
trace_api.set_tracer_provider(tracer_provider=tracer_provider)
# Start instrumenting agno
AgnoInstrumentor().instrument()
agent = Agent(
model=OpenAIChat(id="gpt-4o-mini"),
tools=[DuckDuckGoTools()],
markdown=True,
debug_mode=True,
)
agent.print_response("What is currently trending on Twitter?")
Finally, run the example:
python example.py
Finally, browse for your trace in Phoenix at http://localhost:6006!
More Info
Metadata
Release files for openinference-instrumentation-agno 1.0.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| openinference_instrumentation_agno-1.0.12.tar.gz | 26.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| openinference_instrumentation_agno-1.0.12-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 57.4 kB
Release files / openinference_instrumentation_agno-1.0.12.tar.gz
| Download URL | openinference_instrumentation_agno-1.0.12.tar.gz |
|---|---|
| Size | 26.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f43129bafef12db2e95fa10610dde16b966b2c8edf14df5bf7822136c56ae2c0
|
|
BLAKE2b-256 checksum How to use checksums |
50439aa0b7dba1937b264c02dd8a6f22e84115e0746692f0f0bb814b56cacba1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.
Transparency logRelease files / openinference_instrumentation_agno-1.0.12-py3-none-any.whl
| Download URL | openinference_instrumentation_agno-1.0.12-py3-none-any.whl |
|---|---|
| Size | 31.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2f8b2ec74c9cc71a5017e1a18ed8e66170f9e40abf18797cfe38a4adf4d2dbc4
|
|
BLAKE2b-256 checksum How to use checksums |
55a21bad6c2eee81e13a038142e098870a8d29cab390e5234a586065349ba7a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.
Transparency log