Documentation
Run agents. Know when they break.
Dunetrace is runtime observability for AI agents. Seventeen behavioral detectors, deterministic explanations, Slack alerts in under fifteen seconds. These pages cover everything from a two-minute install to the database schema.
Start here
Quick start
Up and running in two minutes
Clone,
docker compose up, instrument your agent, open the dashboard. Runs locally with no API key.Architecture
How the pipeline works
Five services, one Postgres, one static dashboard. SDK → ingest → detector → explain → alerts. Failure modes included.
Integrate your agent
LangChain / LangGraph
One callback, zero agent changes
DunetraceCallbackHandler plugs into the LangChain callback system and translates every event automatically.CrewAI
Global hooks, one wrapper
DunetraceCrewCallback registers global LLM and tool hooks. Wrap crew.kickoff() with dt.run() to group all events under one run.AutoGen
Wrap the model client once
DunetraceAutoGenObserver wraps a multi-agent AutoGen conversation. observer.wrap_client() instruments every LLM call automatically.Haystack
Register once, monitor automatically
DunetraceHaystackTracer implements the Haystack Tracer protocol. One enable_tracing() call covers every pipeline run — LLMs, retrievers, and tool invocations.Custom Python agent
Decorator, middleware, or manual
Six paths:
@dt.trace/@dt.tool, @dt.agent(), ASGI, WSGI, manual dt.run(), or OTel receiver.TypeScript agent
npm package with background buffering
npm install dunetrace. Wrap OpenAI/Anthropic with dt.wrapOpenAI() and tools with dt.tool(). Same detectors and alerts as Python.Langdock
Zero-code OTel monitoring
Point Langdock's "Tracing cloud URL" at the Dunetrace ingest service. All 17 detectors activate immediately with no code changes.
Langfuse
LLM-powered root-cause analysis
Connect Langfuse to get per-signal root-cause explanations. Click "Explain with Langfuse ↗" to fetch the trace and apply a prompt fix in one click.
All integrations
FastAPI, Flask, OTel, Loki
OpenLLMetry, Grafana Loki, Tempo, Honeycomb, Datadog. Side-by-side setup for each.
Detectors
All 17 behavioral detectors
What each one catches, its threshold, how to tune
detectors.yml, and shadow-mode evaluation.Operate it
Dashboard
Mission control at :3000
Overview, Runs, Alerts, Analytics, Heatmap, Agents, Compare, Detectors. Auto-refreshes every 15s.
Alerts
Slack, webhook, weekly digest
Rate context, HMAC signatures, at-least-once delivery, and the Monday 9am UTC digest.
MCP server
Query your agents from your editor
Ask Claude Code or Cursor about agent health, failure patterns, and run timelines using the Dunetrace MCP server tools.
FAQ
Something missing?
Open an issue on GitHub or email the team. Docs PRs welcome.