Respan instrumentation plugin for Agno
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file respan_instrumentation_agno-0.1.0.tar.gz.
File metadata
- Download URL: respan_instrumentation_agno-0.1.0.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.4 CPython/3.12.12 Darwin/25.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c01df0e2993a970b8a893234879d7964958222f7d37ecf931e0401cd0253a3b6
|
|
| MD5 |
580c08a0ef54017a77b746591346d033
|
|
| BLAKE2b-256 |
e1a684e332f1144aaebee9d9420304e427b6bfbda89b6b954f6a10d1ed3e932b
|
File details
Details for the file respan_instrumentation_agno-0.1.0-py3-none-any.whl.
File metadata
- Download URL: respan_instrumentation_agno-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.4 CPython/3.12.12 Darwin/25.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88a0db8a1e310d3aa04227100954726471f26e8dd74a369c675239c1f39c7f68
|
|
| MD5 |
0623d7c6b40ffd75dc98848d492beffa
|
|
| BLAKE2b-256 |
bc3087a6a473ed7aee063aefee4b18952428d028f5ec1e77aebb1107a55bd185
|