Superagent
Overview
respan-instrumentation-superagent is an instrumentation plugin that captures calls from the Superagent safety-agent SDK and sends them to Respan through the unified OpenTelemetry pipeline.
It monkey-patches safety_agent.client.SafetyClient methods and emits canonical Respan spans for guard, redact, scan, and future compatible Superagent methods.
Version: 0.1.0 | Python: >=3.11, <3.14
Dependencies
Quick start
Public API
SuperagentInstrumentor
The main instrumentor class. Implements the Instrumentation protocol.
Constructor
Captured operations
Span attributes
All emitted spans include:
guard() spans additionally include:
With propagated attributes
Use propagate_attributes() to attach per-request metadata to all Superagent spans:
With decorators
Combine Superagent instrumentation with decorators when you want application-level structure around safety checks:
Architecture
Internal modules
These are implementation details, not part of the public API: