Skip to main content

agent-observability

OpenTelemetry-native agent tracing, cost attribution, and drift detection

CI PyPI version Python versions License

Part of the AumOS open-source agent infrastructure portfolio.


Features

  • Eight agent-semantic OTel span kinds — llm_call, tool_invoke, memory_read, memory_write, reasoning_step, agent_delegate, human_approval, and agent_error — each with typed fluent setters for tokens, cost, model, and domain-specific fields
  • AgentTracer context-manager factory produces AgentSpan instances backed by a real OTel tracer when the SDK is installed, or a zero-dependency no-op fallback when it is not
  • Per-call cost attribution with model pricing tables and CostAnnotation dataclasses recorded directly on LLM call spans
  • Behavioral drift detection: BaselineProfiler accumulates metrics (tool call frequency, prompt length, error rate), and DriftDetector raises alerts when observations deviate beyond configurable thresholds
  • PII-safe telemetry via a configurable Redactor that scrubs span attributes before they are exported
  • Auto-instrumentation modules for LangChain, CrewAI, AutoGen, Anthropic SDK, OpenAI SDK, and MCP — call instrument() once and all framework calls emit spans automatically
  • Pre-built Grafana dashboard definitions for agent throughput, cost trends, error rates, and drift alerts

Quick Start

Install from PyPI:

pip install agent-observability

Verify the installation:

agent-observability version

Basic usage:

import agent_observability

# See examples/01_quickstart.py for a working example

Documentation

Enterprise Upgrade

For production deployments requiring SLA-backed support and advanced integrations, contact the maintainers or see the commercial extensions documentation.

Contributing

Contributions are welcome. Please read CONTRIBUTING.md before opening a pull request.

License

Apache 2.0 — see LICENSE for full terms.


Part of AumOS — open-source agent infrastructure.

Metadata

Release files for aumos-agent-observability 0.2.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 aumos-agent-observability 0.2.0
File Size Uploaded Provenance
aumos_agent_observability-0.2.0.tar.gz 200.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aumos-agent-observability 0.2.0
File Interpreter ABI Platform
aumos_agent_observability-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 366.2 kB

Release files / aumos_agent_observability-0.2.0.tar.gz

Download URL aumos_agent_observability-0.2.0.tar.gz
Size 200.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f276145347cdbc3b2581919179d8f97fc68f8a2c263e2bc2a5f7297cafab46f5
BLAKE2b-256 checksum
How to use checksums
07b20b783839a9761ddd5c79290d3ca3db6b4b23f52a8e99c0220fd2353355e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / aumos_agent_observability-0.2.0-py3-none-any.whl

Download URL aumos_agent_observability-0.2.0-py3-none-any.whl
Size 165.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec67f807e0e75ace8d58e98d5c60aacf8a6728700ddf4370676daad8302dc84b
BLAKE2b-256 checksum
How to use checksums
ba0c37843f5c38b9e9ee5cfa34546b8c4ee442395565021e4bcb84c81a0d5b31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for aumos-agent-observability 0.2.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.2.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