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.
Metadata
Release files for respan-instrumentation-agentops 0.1.0
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_agentops-0.1.0.tar.gz | 5.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| respan_instrumentation_agentops-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.9 kB
Release files / respan_instrumentation_agentops-0.1.0.tar.gz
| Download URL | respan_instrumentation_agentops-0.1.0.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b7a3d3ae0c5fccebd1ede31a3b3fbc11816c397ebc2048366264da9d5c83c4fd
|
|
BLAKE2b-256 checksum How to use checksums |
391b36bc753313582cee368658d9e12290afc9702cb0577697742903838cb704
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.13.12 Linux/6.17.0-35-generic
|
Release files / respan_instrumentation_agentops-0.1.0-py3-none-any.whl
| Download URL | respan_instrumentation_agentops-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
658b5f5dde7d8ea5d4138c12d312aa07d78e1780c1d500f16a05d470ddfca72f
|
|
BLAKE2b-256 checksum How to use checksums |
1f459484fac7231687e6296785007e63260eb5400141d18f605236d2d5c1cd03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.13.12 Linux/6.17.0-35-generic
|