respan-instrumentation-agno
Respan instrumentation plugin for Agno.
This package patches Agno's native Agent and Team run methods and emits
Respan-compatible OpenTelemetry spans directly. It does not use Agno's
OpenInference integration.
Configuration
1. Install
pip install respan-instrumentation-agno
2. Set Environment Variables
| Variable | Required | Description |
|---|---|---|
RESPAN_API_KEY |
Yes | Your Respan API key. Authenticates both proxy and tracing. |
RESPAN_BASE_URL |
No | Defaults to https://api.respan.ai/api. |
Quickstart
3. Run Script
import os
from dotenv import load_dotenv
load_dotenv()
respan_api_key = os.environ["RESPAN_API_KEY"]
respan_base_url = os.getenv("RESPAN_BASE_URL", "https://api.respan.ai/api")
os.environ["OPENAI_API_KEY"] = respan_api_key
os.environ["OPENAI_BASE_URL"] = respan_base_url
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from respan import Respan
from respan_instrumentation_agno import AgnoInstrumentor
respan = Respan(
api_key=respan_api_key,
base_url=respan_base_url,
instrumentations=[AgnoInstrumentor()],
)
agent = Agent(
name="Haiku Agent",
model=OpenAIChat(id="gpt-4o-mini"),
)
result = agent.run("Write a one-line haiku about tracing.")
print(result.content)
respan.flush()
4. View Dashboard
After running the script, traces appear on your Respan dashboard.
Further Reading
Metadata
Release files for respan-instrumentation-agno 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| respan_instrumentation_agno-0.1.1.tar.gz | 11.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| respan_instrumentation_agno-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.8 kB
Release files / respan_instrumentation_agno-0.1.1.tar.gz
| Download URL | respan_instrumentation_agno-0.1.1.tar.gz |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95370a19cdf59ac7f299f32e1fefa1dce1e3e10d89d1d1f6613b4b62dcd8a2b0
|
|
BLAKE2b-256 checksum How to use checksums |
00440f4b88533470aa5d4f7dfb226b104d308c235c5371c013cc45c62cbbc13e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / respan_instrumentation_agno-0.1.1-py3-none-any.whl
| Download URL | respan_instrumentation_agno-0.1.1-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e4c080f9971ccb0747b2e42634c4bd2b0f33034cbaa375af54abcba9be1316e8
|
|
BLAKE2b-256 checksum How to use checksums |
94823e52da8a044a75644f9597f52298444e495a473c6a076419b6a727a2d697
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|