traceroot vs. Opik
An open-source Opik alternative compared at the source level: architecture, git context, production judges and root cause analysis.
On this page
Your agent gave a customer a wrong answer, and every span in the trace is green. Both traceroot and Opik will show you that trace. This post compares what each one does next and what it runs on.
TL;DR
Both open source, both on ClickHouse. traceroot and Opik publish their full platforms on GitHub and keep traces in ClickHouse. The difference is the ingest path: traceroot stores every raw OTLP batch in object storage before a worker writes it, so a failed batch can be replayed (ingest_quarantine.py). Opik's SDKs send batches to its Java backend, which inserts them into ClickHouse with async inserts (architecture).
Full GitHub context on every trace. The traceroot SDK records the repository and Git ref on every span, and the file, line and function for instrumented functions. Opik's SDK logs the inputs, outputs, metadata and tags you give it and does not add repository or commit attributes on its own.
Traces judged as they finish, failures grouped as they arrive. A traceroot detector judges each sampled trace about a minute after its last span arrives, and flagged traces join Signals that reopen on regression. Opik's online evaluation rules score new traces, threads or spans, and its Diagnostics feature groups recurring failures in scans that run on demand or once a day.
Root cause analysis at the recorded commit. traceroot's agent clones your repository at the commit on the trace into a sandbox and can optionally open a pull request. Ollie, Opik's built-in AI assistant, reads the files of the local project you pair with opik connect and proposes edits for you to approve.
Choose traceroot if you want an open-source platform built to keep improving agents in production: per-trace judges, Signals with full GitHub context that reopen on regression, and root cause analysis at the commit that ran with an optional pull request, plus a CLI your coding agent can drive.
Choose Opik if you already use Comet for ML experiment tracking and want LLM tracing, test suites and evaluation from the same vendor, with an assistant that reads and edits the code on your machine after you approve each change.
At a glance
| Opik | traceroot | |
|---|---|---|
| Open source | ✓ | ✓ |
| Self-hosting | ✓ | ✓ |
| Span store | ClickHouse | ClickHouse |
| OpenTelemetry ingestion | ✓ | ✓ |
| Python and TypeScript SDKs | ✓ | ✓ |
| Datasets and experiments | ✓ | ✓ |
| LLM judge on production traces | ✓ Online evaluation | ✓ Detectors |
| Recurring failures grouped | ✓ Diagnostics scans | ✓ Signals |
| Built-in agent | ✓ Ollie | ✓ Root cause agent |
| Repository and Git context on traces | Via metadata | ✓ SDK Git context |
| Reads your code at the traced commit | Local working copy | ✓ |
| Opens a pull request | Edits local files | ✓ Optional |
Open source and self-hosting
Traces hold your prompts, your customers' words and every tool call your agent made, so where they live matters. Both projects let you keep that record on your own machines.
traceroot is open source and self-hostable. make prod in the repository brings up the full stack in Docker Compose: the web app, the API, the ingest worker, the detector worker, the root cause analysis agent and the databases (self-hosting guide, docker-compose.prod.yml). The SDKs and the CLI live in their own repositories (traceroot-py, traceroot-ts, traceroot-cli).
Opik is open source in comet-ml/opik, which holds the backend, the web app and the SDKs. Its self-hosting overview says a self-hosted install gets "all Opik features including tracing, evaluation, etc but without user management features". Opik offers two ways to run it: a local installation with Docker Compose, which the docs describe as "not meant for production deployments", and a Kubernetes Helm chart for production.
Architecture, from SDK to storage
Both products take OpenTelemetry spans and both keep traces in ClickHouse, a columnar database built for this kind of volume. What differs is the path a span takes before it is stored, and what happens after.
traceroot stores raw OTLP batches in object storage, a worker writes spans to ClickHouse, a detector worker judges finished traces, and flagged traces become Signals that the root cause analysis agent investigates. Opik SDKs send batches to the Java backend, which inserts them into ClickHouse, online evaluation rules score new items through Redis Streams, and Diagnostics scans traces on demand or daily.
traceroot is split into services. The public traces endpoint stores each OTLP request body in S3 or MinIO exactly as received, then queues a task with a pointer to it (traces.py). A Celery worker decodes the batch and writes it to ClickHouse (ingest_tasks.py). Because the raw body is stored first, a batch that fails every attempt is moved aside where it can be inspected or replayed (ingest_quarantine.py). Spans live in a ClickHouse ReplacingMergeTree table ordered by project, trace and start time, with git_source_file, git_source_line and git_source_function columns (005_rebuild_spans_trace_id_order.sql).
Opik's architecture page describes a Java backend for the REST API, a Python backend that runs evaluators and optimization jobs, and a React frontend. Both SDKs batch trace and span operations and send them to batch endpoints such as POST /v1/private/traces/batch. ClickHouse holds traces, spans, feedback scores and experiment results, and "async inserts are enabled for high-throughput ingestion". MySQL holds projects, datasets and prompts, Redis Streams carry online evaluation work, Zookeeper coordinates ClickHouse replicas, and MinIO stores attachments (docker-compose.yaml). Any OpenTelemetry app can send to /api/v1/private/otel (OpenTelemetry).
| Dimension | Opik | traceroot |
|---|---|---|
| Ingest endpoint | SDK batch endpoints, or OTLP at /otel |
OTLP protobuf, stored raw before processing |
| Span store | ClickHouse with async inserts | ClickHouse ReplacingMergeTree |
| Other stores | MySQL, Redis, MinIO, Zookeeper | PostgreSQL, Redis, S3 or MinIO |
| Failed batches | Retried by the SDK | Kept in object storage for replay |
Tracing and git context
Both tools trace an agent step by step, and both cover the common agent frameworks.
traceroot's Python SDK depends on the OpenInference instrumentors for OpenAI, Anthropic, LangChain, LlamaIndex, CrewAI, the OpenAI Agents SDK, Google GenAI and more (pyproject.toml), and the TypeScript SDK uses the @arizeai/openinference-* packages (package.json).
What traceroot adds on top is full GitHub context. When the client starts, it resolves the repository and Git ref from explicit settings first, then TRACEROOT_GIT_REPO and TRACEROOT_GIT_REF, then CI variables, then files written at build time, then the local .git directory (client.py). The span processor stamps traceroot.git.repo and traceroot.git.ref on every recording span (span_processor.py), and the observe decorator records the caller's file, line and function (git_context.py).

Opik traces your functions with the @track decorator, including nested calls (README), and its pricing page lists integrations with more than 40 frameworks, model providers and gateways. A trace carries the inputs, outputs, metadata, tags and feedback scores you log (tracing concepts). The Python SDK in sdks/python has no step that adds the repository or commit to a trace, so code version is whatever you log as metadata yourself.
| Dimension | Opik | traceroot |
|---|---|---|
| Instrumentation | @track, 40+ integrations, OpenTelemetry |
OpenInference, wrapped by the traceroot SDKs |
| Repository and Git ref | Your own metadata | Resolved by the SDK and stamped on every span |
| File, line and function | Your own metadata | Recorded for instrumented functions, stored as columns |
Judging production traffic
traceroot is built for one job: helping you keep improving your agents in production. A detector is a plain-language description of one behavior you want to catch, such as a wrong answer or an unfinished task, that a judge model checks traces against.
The trigger path is in the open-source backend. The ingest batch that carries a trace's root span takes a Redis lock, checks the detector's filters and a deterministic sample, and enqueues one delayed job. The worker then waits until the trace has been quiet for 60 seconds before judging it (detector_tasks.py). The judge reads every span of the trace, rendered as text with each span kept in its place (judge-input.ts).
When a detector says yes, the trace is flagged and grouped into a Signal. A Signal is Open, Resolved or Dismissed, and a Resolved Signal reopens by itself when a trace that started after the fix shows the problem again.
Opik judges production traffic in two places. Online evaluation rules run an LLM-as-a-Judge prompt, a decision model or Python code on new traces, threads (Opik's name for a multi-turn conversation) or spans, with filters and a sampling rate. By default the judge receives the whole trace and can explore its spans with tools before it scores, and each result is stored as a feedback score, a named score attached to the item. Diagnostics then uses Ollie to scan the traces of the last 24 hours on demand, or the previous day's traces once a day at 00:05 UTC, and groups repeated failures into issues with a severity, a root cause and a suggested fix. When you close an issue as Resolved, later scans add new occurrences to it but it stays closed until you reopen it. Alerts send events such as trace errors and feedback scores to Slack, PagerDuty or a webhook.
| Dimension | Opik | traceroot |
|---|---|---|
| Unit that is judged | A new trace, thread or span matching the rule | The whole trace, after it has been quiet for 60 seconds |
| Sampling and filters | Filters and sampling rate per rule | Per detector, with deterministic sampling per trace |
| Recurring failures | Diagnostics issues from on-demand or daily scans | Signals, updated as each flagged trace arrives |
| Regression after a fix | Occurrences added; you reopen the issue | Signal reopens automatically |
From a flagged trace to a fix
With automatic root cause analysis on, a new or reopened Signal starts an investigation. You can also run one by hand.

A root cause is only as good as the context behind it. traceroot's agent is a coding agent, powered by pi-mono, that runs in an isolated sandbox. It clones your repository at the commit recorded on the trace, reads the traces behind the Signal and the file and line on the failing span, and returns a root cause, the code location and a recommended fix. In docker-compose.prod.yml, the agent is its own service, with Docker or Daytona as the sandbox provider, and it can run on your own model key.

A pull request is optional. If you ask for one, the agent writes the fix and opens a pull request on a new branch through the GitHub App, linked to the trace, for an engineer to review. It never pushes to main.
Ollie is Opik's conversational assistant. It reads full span trees, compares failing runs with good ones and queries traces, datasets, experiments and prompts. For code, you run opik connect --project <project-name> in your agent's folder, which pairs that local project with Opik. Ollie can then read the files in it, propose edits that change files on your machine only after you approve them, rerun your agent with the inputs of the failing trace, and add the trace to a test suite (Ollie guide). Ollie works on the copy of the code on the machine where opik connect runs, not on a commit recorded in the trace.
| Dimension | Opik | traceroot |
|---|---|---|
| Started by | You, in the Ollie chat or from a Diagnostics issue | A new or reopened Signal, or by hand |
| Code it reads | The local project paired with opik connect |
A clone of your repository at the commit on the trace |
| Where it runs | Ollie in Opik; your agent on your machine | An isolated sandbox, Docker or Daytona |
| Output | Approved edits to local files | Root cause, code location, optional pull request |
A CLI your coding agent can use
Both tools give a coding agent a way in: traceroot through its CLI, Opik mainly through its MCP server.
traceroot setup signs you in, writes a project API key into your env file, has Claude Code or Codex add the SDK, and waits for the first trace. After that, the CLI is built around the improvement loop. An agent can list flagged traces, read one with its root cause analysis, and export a trace with its git context into the repository it is editing. It can run project-scoped, read-only SQL over spans and traces, and create, update and delete detectors, alerts, dashboards and projects. Every command takes --json, and exit codes are documented.
The opik CLI configures the SDK, pairs a local project with opik connect, exports and imports data, runs a health check and sets up the MCP server (main.py). Opik's MCP server lets a coding assistant read traces, find the failing ones and score them.
| Dimension | Opik | traceroot |
|---|---|---|
| Setup | opik configure, opik mcp configure |
traceroot setup, adds the SDK and waits for a trace |
| Judged traces | Through the MCP server | traceroot findings list and findings get, with root cause analysis |
| Trace export | opik export |
traceroot traces export, with git_context.json |
Evaluation as the verify step
A fix is done when it is checked. Both tools run offline evaluations over datasets.
traceroot evaluations run your system over a dataset, and each case runs as a trace, so the cost and span views you use in production work for the eval too. Scorers can be code or an LLM judge. Label a run with the pull request's commit, compare it with the current version on the same immutable dataset version, and merge when it holds.
Opik's evaluation runs test suites with pass or fail assertions and experiments over datasets, with built-in and custom metrics.
Which should you choose
Choose traceroot if you want to keep improving agents in production on an open-source stack: detectors read every span of a trace within a minute of its last span, flagged traces become Signals with full GitHub context that reopen on regression, and the root cause analysis agent reads your repository at the recorded commit, with a pull request one optional step away. Both keep traces in ClickHouse, and traceroot stores every raw OTLP batch in object storage before processing, so a failed batch can be replayed (ingest_quarantine.py). It comes with a CLI your coding agent can drive.
Choose Opik if you already use Comet for ML experiment tracking and want LLM tracing, test suites and evaluation from the same vendor, with an assistant that reads and edits the code on your machine after you approve each change.
Both speak OpenTelemetry, so the easiest way to decide is to send one agent's traces to traceroot next to what you run today.
Switching from Opik
You do not have to switch in one step.
- Run
npx -y traceroot-cli@latest setupin the repository of one agent. It adds the traceroot SDK and checks that the first trace arrives. - Keep Opik running while you compare. Opik accepts OpenTelemetry, so an OpenTelemetry Collector can send the same spans to both.
- Write a detector for one failure you already score with an online evaluation rule, and connect the GitHub App so root cause analysis can read your code at the recorded commit.
- Compare what each tool tells you about the same failures for a week or two, then move your datasets when you are ready.
Get started
Install the CLI and run traceroot setup in the repository of one agent. Pick one failure you have already worked through by hand, so you know what a correct diagnosis looks like, then write a detector that describes it in plain language and connect the GitHub App. The code is on GitHub.
FAQ
Is traceroot an Opik alternative? Yes, and an open-source one: you can self-host it with Docker Compose. It judges production traces with detectors, groups flagged traces into Signals, investigates them against your repository at the recorded commit, and can optionally open a pull request for review.
Is Opik open source? Yes. Opik's backend, web app and SDKs are on GitHub in comet-ml/opik, and a self-hosted install has the Opik features without user management (self-hosting overview).
What is Ollie in Opik? Ollie is Opik's built-in AI assistant. It analyzes traces, powers Diagnostics, and with opik connect reads and edits the code of a local project after you approve each change (Ollie).
Does Opik record the commit on production traces? Not by itself. Opik's SDK logs what you pass it, so you can add a commit as metadata. traceroot's SDK resolves the repository and Git ref and stamps them on every span.
Do I need to give traceroot access to my repository? Only for root cause analysis and pull requests. Tracing works without it.
Opik facts in this post were checked against Opik's public docs, its pricing page and the comet-ml/opik repository at commit a64b914, and traceroot facts against its source code, on November 20, 2026.