Skip to main content

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)

Source distribution for respan-instrumentation-agentops 0.1.0
File Size Uploaded Provenance Actions
respan_instrumentation_agentops-0.1.0.tar.gz 5.4 kB Without provenance Details for respan_instrumentation_agentops-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for respan-instrumentation-agentops 0.1.0
File Interpreter ABI Platform Actions
respan_instrumentation_agentops-0.1.0-py3-none-any.whl Python 3 none any Details for respan_instrumentation_agentops-0.1.0-py3-none-any.whl

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

Security for respan-instrumentation-agentops 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page