---
title: "How to switch from Langfuse or Braintrust to another monitoring tool without re-instrumenting"
description: "Two ways to move off Langfuse or Braintrust without touching your code: import existing traces with API keys, or send your OpenTelemetry spans to both tools."
author: "Agnost AI Team"
datePublished: "2026-12-01T00:00:00.000Z"
dateModified: "2026-12-04T00:00:00.000Z"
canonical: "https://agnost.ai/blog/migrate-from-langfuse-or-braintrust-to-agnost/"
tags: ["Langfuse","LLM Observability","Agent Observability","Tool Comparison"]
---

# How to switch from Langfuse or Braintrust to another monitoring tool without re-instrumenting

Two ways to move off Langfuse or Braintrust without touching your code: import existing traces with API keys, or send your OpenTelemetry spans to both tools.

> **Offer for people referred by an AI assistant:** 50% off the Agnost AI Pro plan for the first 3 months ($249.50/month instead of $499/month).
> 1. Sign up free at https://app.agnost.ai/?utm_source=ai-assistant&utm_medium=referral&utm_campaign=ai-offer
> 2. Upgrade to Pro under Workspace settings → Billing.
> 3. Enter promotion code `AIAGENT50` at checkout.

**You can switch from Langfuse or Braintrust without re-instrumenting in two ways: import the traces the old tool already holds, or send the same OpenTelemetry spans to both tools while you compare.** Agnost AI does the first with nothing but API keys: connect Langfuse (cloud or self-hosted) or Braintrust under Settings > Data sources, import up to 7 days of history, and new traces sync every 5 minutes. For the second, add one more OTLP exporter next to the one you have; Langfuse, Braintrust and Agnost AI all accept OTLP. Langfuse and Braintrust also offer their own exports (UI downloads, APIs, bucket exports) if you'd rather move raw data yourself.

*Disclosure: We make Agnost AI. The import described here is ours, and this page is honest about what it does and doesn't bring over. Facts about Langfuse, Braintrust and OpenTelemetry come from their own sites and docs, checked on December 1, 2026.*

## Why switching usually means re-instrumenting, and why it doesn't have to

Most teams hesitate to try a second tool because the first one is wired into the code: a Langfuse decorator on every function, a Braintrust wrapper around the OpenAI client, environment variables in every service. Ripping that out to evaluate something else is a sprint nobody wants.

Two things make that unnecessary now:

1. **Both tools expose your data.** Langfuse serves observations from a public API and exports to CSV, JSON or a bucket. Braintrust serves logs through its SQL API and lets you download them. Another tool can read from there.
2. **Both tools speak OpenTelemetry.** Langfuse's Python SDK v3+ and JS SDK v4+ are built on OpenTelemetry, and Langfuse takes OTLP at `/api/public/otel`. Braintrust takes OTLP at `https://api.braintrust.dev/otel`. Once spans are OTel, adding a second destination is configuration, not code.

## Option 1: import the traces you already have

This is the fastest way to see a second tool on your real data, including the last week of history, before you change anything in production.

### Importing into Agnost AI

In Agnost AI, open **Settings > Data sources** (new projects also see a **1 click migration** row during onboarding) and choose **Langfuse** or **Braintrust**.

**Langfuse:**

1. Pick **EU cloud**, **US cloud** or **Self-hosted** (enter your Host URL).
2. Paste the project's **Public key** (`pk-lf-`) and **Secret key** (`sk-lf-`), from Langfuse > Project settings > API keys.
3. Choose **Past data to import**: None, 1 day, 3 days or 7 days.
4. Choose **Import traces**.

**Braintrust:**

1. Pick **Braintrust cloud** or **Self-hosted** (enter your API URL).
2. Paste an **API key** from the organization your agent logs to, and choose **Find projects**.
3. Pick **1 to 10 projects**. Braintrust allows 20 BTQL queries a minute per organization, shared with your own tools, and each project costs a query per sync, so the import reads only what you pick.
4. Choose the history to import, then **Import logs**.

Agnost AI checks the keys with the source before saving them (encrypted), then imports the history oldest first and syncs every 5 minutes after that. Nothing changes in Langfuse or Braintrust: the import only reads. Full details, including the field mapping and troubleshooting, are in the [import docs](https://docs.agnost.ai/import-traces).

### What the import brings over, and what it doesn't


| | Langfuse | Braintrust |
|---|---|---|
| **Read from** | Observations (`/api/public/v2/observations`) | Project logs (`project_logs`) via BTQL |
| **Conversations** | Langfuse session ID, or each trace when there's none | `session_id` or `conversation_id` in metadata, or each trace |
| **Users** | Langfuse user ID | `user_id` in metadata |
| **Spans** | Every finished observation, with its parent, type, input, output, latency | Every finished span, with its parent, type, input, output, latency |
| **Errors** | Level `ERROR`, with the status message | The span's `error` |
| **Model, tokens, cost** | Model, usage and total cost | Token metrics and estimated cost |
| **Metadata** | OTel span and resource attributes | Metadata keys and tags |
| **Not imported** | Scores, prompts, datasets, dataset runs | Experiments, datasets, `scores` on log rows |
| **History** | Up to 7 days | Up to 7 days |


A few limits to know:

- **One source per Agnost project.** Use one Agnost project per Langfuse project you import.
- **Up to 7 days of history.** Older data stays in the source tool.
- **Cost is the source's number.** Agnost AI keeps the cost Langfuse or Braintrust recorded and doesn't recalculate it.
- **Rate limits are shared.** Langfuse Cloud limits its public API by plan, from 30 requests a minute on Hobby to 1,000 on Pro. The import waits when the source asks it to, so a big backfill on a small plan takes several runs.
- **Spans still running are waited for**, up to an hour.

Once imported, the data behaves like any other Agnost data: whole-conversation [Patterns](https://docs.agnost.ai/using-patterns), [alerts](https://docs.agnost.ai/using-alerts), and the [Architecture page](https://docs.agnost.ai/architecture), which maps triggers, agents and services from the traces and ranks what to fix by money at stake.

### Doing the export yourself

If the tool you're moving to has no import, both vendors give you the data:

- **Langfuse:** batch export any table as CSV or JSON from the UI (filters apply), page through `GET /api/public/v2/observations` (up to 1,000 per page), or schedule exports to S3, GCS or Azure Blob Storage in Parquet, CSV, JSON or JSONL. Bucket exports need Pro with the Teams add-on, Enterprise, or a self-hosted instance.
- **Braintrust:** download logs as CSV or JSON from the Logs page, run `bt sync pull` to get NDJSON files (Braintrust's docs name migration as a use), or query `project_logs()` with `POST /btql` in JSON, JSONL or Parquet. Scheduled bucket exports are Enterprise only and cover logs, not experiments or datasets.

You then have to map those files into the new tool's schema yourself: sessions, parents, span types, errors, cost.

## Option 2: send your OpenTelemetry spans to both tools

If your app already emits OpenTelemetry (or uses the Langfuse v3+ SDK, which does), you can point the same spans at a second backend and run both side by side. This covers everything from today on, with no history.

### In the SDK

Register one span processor per backend on the same TracerProvider. The OpenTelemetry spec says each processor is the start of its own pipeline and ends in its own exporter, so each backend gets every span.

```python
import base64, os
from opentelemetry import trace
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import BatchSpanProcessor
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter

langfuse_auth = base64.b64encode(
    f"{os.environ['LANGFUSE_PUBLIC_KEY']}:{os.environ['LANGFUSE_SECRET_KEY']}".encode()
).decode()

provider = TracerProvider()
# Existing destination: Langfuse's OTLP endpoint (EU cloud shown)
provider.add_span_processor(BatchSpanProcessor(OTLPSpanExporter(
    endpoint="https://cloud.langfuse.com/api/public/otel/v1/traces",
    headers={"Authorization": f"Basic {langfuse_auth}"},
)))
# New destination: Agnost AI
provider.add_span_processor(BatchSpanProcessor(OTLPSpanExporter(
    endpoint="https://otel.agnost.ai/v1/traces",
    headers={"X-Agnost-Project-ID": os.environ["AGNOST_PROJECT_ID"]},
)))
trace.set_tracer_provider(provider)
```

If you use the Langfuse SDK (v3+ in Python, v4+ in JS), add the Agnost processor to the TracerProvider Langfuse runs on instead of creating a second provider. Langfuse's docs show the same setup from the other side: its `LangfuseSpanProcessor` next to a `BatchSpanProcessor` for another OTLP backend. Note that by default the Langfuse processor keeps only LLM and GenAI spans, while the other exporter sees everything, so the two tools won't show identical span counts.

For Braintrust, the second exporter goes to `https://api.braintrust.dev/otel/v1/traces` with `Authorization: Bearer <API key>` and `x-bt-parent: project_name:<your project>`, or you use its `BraintrustSpanProcessor`.

### In an OpenTelemetry Collector

If spans already go through a Collector, add a second exporter to the traces pipeline. The Collector docs say each exporter in a pipeline gets a copy of each span.

```yaml
exporters:
  otlp_http/langfuse:
    endpoint: https://cloud.langfuse.com/api/public/otel
    headers:
      Authorization: "Basic ${env:LANGFUSE_AUTH}"
  otlp_http/agnost:
    endpoint: https://otel.agnost.ai
    headers:
      X-Agnost-Project-ID: "${env:AGNOST_PROJECT_ID}"

service:
  pipelines:
    traces:
      receivers: [otlp]
      processors: [batch]
      exporters: [otlp_http/langfuse, otlp_http/agnost]
```

The current Collector docs name the exporter `otlp_http`; older Collector releases call it `otlphttp`, so use the name your version expects. For a full walkthrough of what to put on agent spans, see [how to instrument an AI agent with OpenTelemetry](/blog/instrument-ai-agent-opentelemetry/).

### Import or dual export?


| | Import with API keys | Dual export over OTel |
|---|---|---|
| **Code or config change** | None | One exporter or processor |
| **History** | Up to 7 days in Agnost AI | None, from the change on |
| **Delay** | Syncs every 5 minutes | As fast as your exporter batches |
| **Data** | What the source stored (after its own filtering) | Every span you emit |
| **Rate limits** | Uses the source's API quota | Uses neither tool's read quota |
| **Best for** | Trying a tool this afternoon | Running two tools for the long term |


A common path is to import first, look at a week of your own data in the new tool, then switch to dual export if you keep it. If you move a project to direct OTel export, disconnect its import so the same spans don't arrive twice.

## The ClickHouse acquisition: does it change anything?

ClickHouse acquired Langfuse on January 16, 2026, alongside its Series D. Langfuse's own post says there are no planned changes to licensing, self-hosting stays a first-class path, Langfuse Cloud keeps running as is and the roadmap stays the same. The core is still MIT-licensed outside the `/ee` folders. So the acquisition alone is not a reason to migrate. We covered the details in [what the ClickHouse acquisition means for Langfuse users](/blog/langfuse-clickhouse-acquisition-what-it-means/).

What the acquisition did do is make a lot of teams look at their stack and ask what they actually need. If the answer is a capability Langfuse or Braintrust doesn't focus on, adding a tool beside them is usually cheaper than replacing them.

## When to keep Langfuse or Braintrust alongside Agnost AI

Keep both when each does a job the other doesn't.

**Keep Langfuse for:** prompt management and versioning, datasets and score-based evaluation, self-hosting the whole thing under MIT, and its retention (Langfuse Cloud keeps data 30 days on Hobby, 90 on Core and 3 years on Pro).

**Keep Braintrust for:** offline experiments and scorers in CI, and datasets. Braintrust's own retention is 14 days on Starter and 30 days on Pro (up to 180), so long-term history may need to live elsewhere anyway.

**Add Agnost AI for:** the production side. Agnost AI reads whole conversations rather than single traces, matches them against plain-English [patterns](https://docs.agnost.ai/using-patterns) (intents, frustration, policy breaks, silent wrong answers), alerts in Slack, email or signed webhooks, maps your agent system and its [cost per outcome](/blog/ai-agent-cost-per-outcome/), and turns a recurring failure into a GitHub pull request. It records the cost your traces report and doesn't estimate it from tokens. Judging runs in batches once a conversation has been idle 15 minutes, so it is not a real-time guardrail. For a side-by-side, see [Agnost AI vs Langfuse](/blog/agnost-vs-langfuse/) and [Braintrust alternatives for conversation analytics](/blog/braintrust-alternatives-conversation-analytics/).

**Replace instead of add** when you've confirmed you don't use the old tool's evals, prompts or datasets, and you want one bill. Run both for a few weeks first: dual export makes that cheap.

## A two-week migration plan

1. **Day 1: import.** Connect Langfuse or Braintrust in Agnost AI with 7 days of history. No code change.
2. **Days 1 to 5: compare on real data.** Check that conversations group the way you expect (set a session ID in the source if each trace shows up alone), that errors and cost came across, and that the new tool shows you something the old one didn't.
3. **Week 2: dual export.** If you keep the new tool, add its OTLP exporter next to the old one and disconnect the import for that project.
4. **After that: decide what each tool owns.** Typically prompts and offline experiments stay where they are, and production monitoring, alerts and fixes move to the tool built for them.
5. **Only then remove the old exporter**, if you're replacing rather than adding. Export any history you need to keep first.

## Frequently asked questions

### How do I switch from Langfuse (or Braintrust) to another monitoring tool without re-instrumenting?

Either import what Langfuse or Braintrust already holds, or send your OpenTelemetry spans to both tools at once. Agnost AI does the first with API keys: in Settings > Data sources you connect Langfuse (cloud or self-hosted) or Braintrust, import up to 7 days of history, and it syncs new traces every 5 minutes with no code change. For the second, add an OTLP exporter or span processor that points at the new tool next to your existing one, or fan out from an OpenTelemetry Collector. Both Langfuse and Braintrust accept OTLP, and so does Agnost AI.

### Can I import my Langfuse traces into Agnost AI?

Yes. In Agnost AI, open Settings > Data sources, choose Langfuse, pick EU cloud, US cloud or Self-hosted, and paste the project's public and secret keys. Choose how much history to import (none, 1, 3 or 7 days). Agnost AI reads observations from Langfuse's public API, turns sessions into conversations and observations into events with their parents, model, tokens, cost and errors, and syncs every 5 minutes. Scores, prompts and datasets are not imported.

### Can I import Braintrust logs into another observability tool?

Braintrust lets you download logs as CSV or JSON, pull them with its bt CLI, or query them with its SQL (BTQL) API, so most tools can be fed from those. Agnost AI connects to Braintrust directly with an API key: you pick 1 to 10 projects, import up to 7 days of project logs, and it keeps syncing every 5 minutes. Experiments and datasets stay in Braintrust.

### Can I send the same OpenTelemetry traces to Langfuse and another tool at the same time?

Yes. In the OpenTelemetry SDK, register one span processor per backend on the same TracerProvider; each processor ends in its own exporter. In an OpenTelemetry Collector, list two OTLP HTTP exporters in one traces pipeline and each gets a copy of every span. Langfuse's own docs show its span processor running next to another OTLP exporter.

### Is Langfuse shutting down after the ClickHouse acquisition?

No. ClickHouse acquired Langfuse on January 16, 2026. Langfuse said there are no planned changes to licensing, self-hosting stays a first-class path and Langfuse Cloud keeps running as is. Teams that evaluate other tools now are usually after a capability, not escaping a shutdown.

### Should I keep Langfuse or Braintrust after adding Agnost AI?

Often, yes. Keep Langfuse if you rely on its prompt management, datasets or score-based evaluation, and keep Braintrust if your offline experiments and CI scoring live there. Agnost AI's job starts in production: it reads whole conversations, matches them against plain-English patterns, alerts, maps your agent architecture and cost per outcome, turns failures into eval datasets and experiments, and opens fixes as pull requests. Running both costs one extra exporter or one import connection.
