Traccia
OpenTelemetry-native AI agent observability, evaluation, governance, and runtime policy enforcement platform with an open-source Python SDK.
At a Glance
About Traccia
Traccia is an AI agent control plane built by Algen AI Private Limited, designed to give engineering and compliance teams full visibility, cost attribution, policy enforcement, and audit-ready governance over autonomous AI agents in production. The open-source Python SDK is licensed under Apache 2.0 and is listed as an external tracing processor in the OpenAI Agents SDK documentation. The hosted Traccia platform adds dashboards, evaluations, guardrail enforcement, and a Governance Hub on top of the same SDK instrumentation.
What It Is
Traccia positions itself as the "trust and governance layer" for autonomous AI systems. It sits between application code and any OTLP-compatible observability backend, enriching OpenTelemetry spans with AI-specific metadata: token counts, LLM costs, prompt versions, guardrail findings, and EU AI Act / HIPAA compliance evidence. The SDK instruments any Python function with a single @observe() decorator and auto-patches OpenAI, Anthropic, Gemini, LangChain, CrewAI, and the OpenAI Agents SDK with zero code changes.
Four-Pillar Architecture
The platform is organized around four layers that build on one another:
- Visibility — Full OpenTelemetry-native traces of every LLM call, tool use, and agent decision, with session grouping, error capture, and a unified agent registry across frameworks.
- Intelligence — Accurate cost attribution computed locally at span-end, independent of sampling rate; a prompt registry with immutable versioning; and an offline evaluation engine (
evaluate()) that runs datasets, scorers, and experiment comparisons. - Control — A three-tier guardrail detection engine (explicit annotation, provider-native signals, heuristic) that runs as a passive span processor. The
@govern()decorator adds runtime policy enforcement that can hard-block agents mid-execution before unsafe actions complete. - Certification — Article-mapped EU AI Act evidence (Art. 12, Art. 14, Art. 50), an opt-in HIPAA Controls module with PHI inventory and labeled exports, and one-click evidence pack exports from the Governance Hub.
Framework and Backend Integrations
The SDK auto-instruments the following frameworks when installed:
- LangChain — via a callback handler (
pip install traccia[langchain]) - CrewAI — automatic crew, task, agent, and LLM span creation
- OpenAI Agents SDK — automatic detection and instrumentation
- AutoGen and LlamaIndex — traced via OpenTelemetry
For LLM providers, OpenAI and Anthropic include automatic token and cost tracking; Gemini (google-genai) is supported as of v0.1.28; any HTTP-based provider is traced via OpenTelemetry. The SDK exports to Grafana Tempo, Jaeger, Zipkin, SigNoz, or any OTLP-compatible backend with no account required.
Update: v0.1.28 — Gemini SDK Integration
The latest release (v0.1.28, published August 2026) adds Gemini (google-genai) auto-instrumentation, bringing Google's model family into the same automatic token and cost tracking pipeline as OpenAI and Anthropic. The repository was created in January 2026 and has seen continuous releases, with the GitHub project accumulating 102 stars and 20 forks as of the last update. The SDK is available on PyPI as traccia.
Deployment Model
Traccia offers two paths:
- SDK locally / self-hosted — Install
pip install traccia, point the OTLP endpoint at any compatible backend (Jaeger, Grafana Tempo, etc.), and get full tracing with no account required. The SDK is open source under Apache 2.0. - Traccia Platform (hosted) — Send traces to
api.traccia.aiwith an API key to unlock the agent-first dashboard, cost attribution UI, prompt registry, experiment compare, policy enforcement, and the Governance Hub. SOC 2 Type II certification is described as in progress; RBAC is available today, with OIDC/SAML SSO on the enterprise roadmap.
Why It Matters for Regulated Deployments
Traditional APM tools monitor infrastructure health; Traccia is purpose-built for AI-native systems where the risks are model-level: runaway LLM costs, PII leakage in traces, restricted model usage, and regulatory audit requirements. The policy engine's hard-block capability — stopping agents mid-execution rather than logging violations after the fact — and the built-in EU AI Act and HIPAA evidence generation address compliance requirements that generic observability platforms do not cover out of the box. The platform is built and operated by Algen AI Private Limited, headquartered in Bengaluru, India.
Community Discussions
Be the first to start a conversation about Traccia
Share your experience with Traccia, ask questions, or help others learn from your insights.
Pricing
Hobby
For experimentation with basic tracing.
- Real-time Traces
- Agent Dashboard
- 50K events included
- 7-day retention
Observe
Production tracing with cost attribution.
- Real-time Traces
- Agent Dashboard
- Cost Attribution
- 500K events included
- $12/100K overage
- 30-day retention
Govern
Policies, analytics, and governance features.
- Real-time Traces
- Agent Dashboard
- Cost Attribution
- Policy Alerts
- Basic Analytics
- 2M events included
- $8/100K overage
- 90-day retention
Scale
Advanced analytics and guardrails at scale.
- Real-time Traces
- Agent Dashboard
- Cost Attribution
- Data Lineage Nodes
- Policy Alerts
- Guardrails Alerts
- Anomaly Detection
- Advanced Analytics
- Google Workspace SSO
- 10M events included
- $5/100K overage
- 1-year retention
Enterprise
Full platform with custom volume, retention, and SLA.
- All Scale features
- Policy Enforcement
- Spend Limits (Hard Cap)
- Scheduled Exports
- Analytics API
- SCIM Provisioning
- Okta/Azure AD/SAML SSO
- 99.9% Uptime SLA
- 10-year retention
- Custom overage pricing
- Volume-based events
Capabilities
Key Features
- OpenTelemetry-native distributed tracing
- Unified agent registry across LangChain, CrewAI, OpenAI Agents SDK, AutoGen, LlamaIndex
- Automatic token and cost attribution for 2500+ models
- Cost computed locally at span-end, independent of sampling rate
- Three-tier guardrail detection (explicit, provider-native, heuristic)
- Runtime policy enforcement with hard-block capability via @govern()
- PII and PHI detection and redaction before export
- Prompt registry with immutable versioning and production labels
- Prompt playground with side-by-side model and wording comparison
- Offline evaluation engine with datasets, scorers, and experiment compare
- EU AI Act article-mapped compliance evidence (Art. 12, 14, 50)
- HIPAA Controls module with PHI inventory and labeled exports
- One-click audit evidence pack export
- Role-based access control (RBAC)
- OTLP-compatible export to Grafana Tempo, Jaeger, Zipkin, SigNoz
- Auto-instrumentation for OpenAI, Anthropic, Gemini
- @observe() decorator for any Python function
- CLI tools: traccia doctor, traccia check, traccia pricing
- OpenTelemetry metrics for accurate cost tracking under sampling
- Rate limiting and configurable span batching
- Async function support
- TypeScript SDK support
