aiplanet-agentops Python package records an application’s agent
runs, nested steps, tool calls, and feedback as standard OpenTelemetry traces.
It correlates model requests routed through the AI Planet gateway without
patching the OpenAI SDK.
Basic usage
Install the approved package build with the OTLP export extra, then initialize it once during application startup:agentops.generation(...).set_usage(...) with provider-returned values.
Data handling
Input and output content is not exported by default. The SDK records redacted type, size, and digest attributes so repeated calls and loops can still be identified. Content capture is an explicit opt-in with a maximum size and must follow your trace backend’s access, region, retention, and deletion policy. Exception details are also disabled by default. Export is asynchronous and bounded; an unavailable trace backend does not fail the agent request. Callagentops.shutdown() from the application shutdown hook so the final batch
has a bounded opportunity to flush.