Respan instrumentation for AgentOps
This package sends spans created by AgentOps' Python decorators through the active Respan OpenTelemetry pipeline.
It adapts AgentOps' own span kinds and content:
trace/ session and workflow decorators become Respan workflow spans- agent decorators become agent spans
- task and operation decorators become task spans
- tool and guardrail decorators retain their matching Respan log types
- AgentOps LLM spans keep their GenAI messages and usage, with AgentOps' request-type and function fields promoted to the canonical Respan contract
The adapter does not initialize the AgentOps exporter. Activate Respan before calling AgentOps-decorated code:
from agentops import task, trace
from respan import Respan
from respan_instrumentation_agentops import AgentOpsInstrumentor
respan = Respan(
api_key="...",
instrumentations=[AgentOpsInstrumentor()],
)
@task
def prepare(value: str) -> str:
return value.upper()
@trace
def workflow(value: str) -> str:
return prepare(value)
workflow("hello")
respan.shutdown()
Set capture_content=False on AgentOpsInstrumentor to omit decorator inputs
and outputs while retaining operation identity and status.
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_agentops-0.1.0.tar.gz.
File metadata
- Download URL: respan_instrumentation_agentops-0.1.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.13.12 Linux/6.17.0-35-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7a3d3ae0c5fccebd1ede31a3b3fbc11816c397ebc2048366264da9d5c83c4fd
|
|
| MD5 |
36c11c95c99bd18d66d3d48c3a1b7049
|
|
| BLAKE2b-256 |
391b36bc753313582cee368658d9e12290afc9702cb0577697742903838cb704
|
File details
Details for the file respan_instrumentation_agentops-0.1.0-py3-none-any.whl.
File metadata
- Download URL: respan_instrumentation_agentops-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.13.12 Linux/6.17.0-35-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
658b5f5dde7d8ea5d4138c12d312aa07d78e1780c1d500f16a05d470ddfca72f
|
|
| MD5 |
f7b256bc91244e38537c9113c557e0cf
|
|
| BLAKE2b-256 |
1f459484fac7231687e6296785007e63260eb5400141d18f605236d2d5c1cd03
|