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.

Pillar 1

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.

Pillar 2

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.

Pillar 3

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.

Pillar 4

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.

Use Traccia Platform

Hosted

The complete control plane: agent-first dashboards, cost attribution, evaluations, policy enforcement, governance evidence, and team collaboration.

  • Policy enforcement
  • Cost attribution
  • Governance and evidence

Use SDK Locally

Open Source

Export traces to your own observability stack. Works with Jaeger, Grafana Tempo, Zipkin, and any OpenTelemetry-compatible backend.

  • No account required
  • OTLP standard export
  • Full SDK control

How It Works

Traccia sits between your application and your backend, enriching traces with AI-specific metadata and routing them wherever you choose.

Your Agent CodePython or TypeScript
Traccia SDKobserve() and govern()
OTLP Over HTTPOpenTelemetry

Quick 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.

bash
pip install traccia
agent.py
python
from traccia import observe, init
# Initialize Traccia
init()
@observe()
def my_agent(query: str) -> str:
"""Your agent logic here."""
response = call_llm(query)
return response
# Calls to supported providers are traced automatically
result = 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.

© 2026 Traccia.