Skip to main content

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

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aumos_agent_observability-0.1.0.tar.gz (137.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aumos_agent_observability-0.1.0-py3-none-any.whl (122.7 kB view details)

Uploaded Python 3

File details

Details for the file aumos_agent_observability-0.1.0.tar.gz.

File metadata

File hashes

Hashes for aumos_agent_observability-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c56cd0a037b0878141dc640b6b660038b3fa5e128e0da35694b8bf079611a80d
MD5 f065c543db12a8ee425b29da859d34e6
BLAKE2b-256 5628cda9c6800dfdf8bb5a9a496bb00fe109536368d3231ea7115ce80f1a18ea

See more details on using hashes here.

File details

Details for the file aumos_agent_observability-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aumos_agent_observability-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c517d3f9a28ccf12d63c3892be50d7bc248a64fc83918a1402fe2f897ad3442
MD5 fefeaec87cf68998ace4bd6b9578890c
BLAKE2b-256 d6bd8a8de7e90dcdcc910d5df44944d61d36ca3a4b55807f42b6b4fa4b026741

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page