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.2.0.tar.gz (200.9 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.2.0-py3-none-any.whl (165.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for aumos_agent_observability-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f276145347cdbc3b2581919179d8f97fc68f8a2c263e2bc2a5f7297cafab46f5
MD5 a6007f2257467709018ca3689c3b4fb0
BLAKE2b-256 07b20b783839a9761ddd5c79290d3ca3db6b4b23f52a8e99c0220fd2353355e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aumos_agent_observability-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec67f807e0e75ace8d58e98d5c60aacf8a6728700ddf4370676daad8302dc84b
MD5 d7fc75770a532d1005f0e184abbc8e39
BLAKE2b-256 ba0c37843f5c38b9e9ee5cfa34546b8c4ee442395565021e4bcb84c81a0d5b31

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