Traccia Documentation
Observe, evaluate, govern, and prove what your AI agents do in production.
Traccia is an AI agent control plane for observability, evaluation, governance, and runtime policy enforcement. Instrument once with the open-source OpenTelemetry SDK, then send traces to your own stack or to the hosted Traccia platform.
Enforce, not just observe. The same spans that show you what your agents did also power cost attribution, evaluations, policy checks, and audit evidence.
The Platform
Traccia is organized around four pillars that build on one another.
Observe
See the steps an agent takes in each traced run: sessions, tool calls, prompts, and errors from Python and TypeScript, plus the cost of each LLM call, attributed by agent, model, and environment. Gateway-only traffic is one LLM span per completion, not that nested timeline.
Evaluate
Test changes before they go live. Version prompts, build datasets from real traces, score them, and attach the experiment as evidence when you promote.
Govern
Stop a bad call before it runs. Spend Cap and Model Boundary check LLM calls made under govern() or through the Gateway. In the SDK, Loop Cap and tool guards check tool calls you wrap as tools, and Refund Guard or Purchase Guard can hold one for a person to review. Detective rules flag issues after the run, and the Decision Log keeps the history of every policy evaluation.
Prove
A record of who decided what, and when: an AI system registry, reviews, incidents, and audit-ready evidence exports generated from the traces you already collect.
Choose Your Path
The SDK is open source and works standalone. The platform adds the dashboard, evaluations, enforcement, and governance surfaces.
How It Works
Traccia sits between your application and your backend, enriching traces with AI-specific metadata and routing them wherever you choose.
Your Own Backend
Jaeger, Grafana Tempo, Zipkin, or any OTLP-compatible collector. No account required.
Local Setup GuideQuick Example
Install the SDK, then add tracing to any function with the @observe() decorator. Platform users can add @govern() to deny or reshape this LLM or tool call. Spend Cap and Model Boundary also apply on the Gateway.
pip install tracciafrom traccia import observe, init
# Initialize Tracciainit()
@observe()def my_agent(query: str) -> str: """Your agent logic here.""" response = call_llm(query) return response
# Calls to supported providers are traced automaticallyresult = my_agent("What is the weather today?")What You Get
Full Trace Visibility
SDK traces show prompts, tools, and nested spans. Gateway-only traffic is one LLM span per completion.
Cost Attribution
Track LLM token usage and cost per agent, model, and environment.
Policy Enforcement
Preventive spend, model, and loop caps on this call. Detective rules after the run.
Compliance Hub
AI system registry, reviews, incidents, and evidence exports.
Team Collaboration
Org-level visibility with role-based access and workspaces.
Auto-Instrumentation
Automatic tracing for OpenAI, Anthropic, and FastAPI.
OpenTelemetry Native
Export to any OTLP-compatible backend, with no framework lock-in.
PII Redaction
Optional pattern masking before spans leave your process.
Next Steps
Platform Getting Started
Create a project, send your first traces, and explore the dashboard.
Policies And Enforcement
Preventive Block can stop this LLM or tool call. Detective Block arms the next wrap. Ingest never rejects a trace.
Evaluations And Experiments
Score outputs against datasets and compare versions before you promote.
Compliance Hub
Registry, reviews, incidents, and compliance evidence.
Learn Core Concepts
Understand traces, spans, and how Traccia works.
Framework Integrations
Integrate Traccia with LangChain, CrewAI, and OpenAI Agents SDK.
© 2026 Traccia.