Skip to content
mentoor

Topic 3 of 6 · 5 min read

Choosing an LLM tracing backend

Goal: Choose a tracing backend for a stated team size, data rule and budget and justify the choice with two criteria.

Pick a tracing backend by your constraints, in this order: where the data may live, what you already run, who needs to use it, and only then price and features.

Check yourself · 1 of 3

A contract says customer text must stay in your own network. Which option fits best?

Choose one answer

Why it matters

Traces hold prompts, and prompts hold customer data. The backend is a second system that stores it. A tool that is perfect for a hackathon can be ruled out by a contract clause that says customer text must stay in the EU. Choosing late means re-instrumenting.

The families

  • Open-source LLM tools, such as Langfuse and Arize Phoenix. You can self-host them, so data stays in your network. Both accept OpenTelemetry data. You run and upgrade the service yourself, or pay for the vendor's hosted version.
  • Framework-linked hosted tools, such as LangSmith. Quick to start if you already use the same framework, with a hosted service and a self-hosted option on some plans. Check how well it works when you are not using that framework.
  • Eval-first platforms, such as Braintrust. Traces sit next to datasets, scoring and prompt versions, which suits teams whose main loop is evaluate and iterate.
  • General APM tools, such as Datadog or Honeycomb. LLM spans show up next to your databases and web services in one trace. Good if an SRE team already lives there; LLM-specific views such as prompt diffs and scoring can be thinner.

Features and prices change often, so check each vendor's pages on the day you decide.

How to decide

  1. Data rule. Must prompts stay in your network or region? That points to self-hosting or a region-pinned plan.
  2. Existing stack. If everything already flows to one APM, adding LLM spans there avoids a second login and a second on-call.
  3. Users. Engineers only, or also product and support reading conversations? Non-engineers need a readable conversation view.
  4. Volume and sampling. Keeping every trace costs storage. Decide what you sample and how long you keep it.
  5. Exit cost. With OpenTelemetry instrumentation, changing backend means changing an exporter, not your code.

Before and after

Before: "Everyone uses X, so we use X." Three months later legal asks where prompts are stored and nobody knows.

After: "Customer text stays in the EU, two engineers run it, and we already pay for Datadog. We start with self-hosted Langfuse in our EU cluster, keep OTel instrumentation, and revisit at the next review." Two criteria, stated.

What goes wrong

  • Choosing on the demo. The demo does not show your data rule or your volume.
  • Locking in with a proprietary SDK. Switching later means rewriting every call site.
  • Forgetting that self-hosting is a job. Someone owns upgrades, backups and access.

Examples

A team of three

Three engineers, customer text must stay in the EU, small budget. Self-hosted Langfuse or Phoenix in an EU region fits: data stays put and there is no per-seat bill. Justification: data residency and cost.

A platform team with an APM

A company already sends all services to Datadog and has an on-call rota there. Adding LLM spans to the same backend means one trace across the API, the database and the model call. Justification: existing stack and one place to be paged.

Key points

  • Choose a backend by data location first, then existing stack, users, volume and price.
  • Open-source tools like Langfuse and Phoenix can be self-hosted, which keeps prompts inside your network.
  • General APM tools put LLM spans in the same trace as your other services but may have thinner LLM-specific views.
  • OpenTelemetry instrumentation keeps the exit cost low: switching means changing an exporter.
  • Self-hosting trades subscription cost for upgrade, backup and access-control work.

Common mistakes

  • Choosing the tool before asking where prompts may be stored.
  • Using a vendor SDK so tightly that switching means rewriting call sites.
  • Picking self-hosting without naming who maintains it.
  • Comparing price per seat when the real cost is storage for kept traces.

Check yourself · 2 of 3

Why does OpenTelemetry instrumentation lower the risk of picking the wrong backend?

Choose one answer

Check yourself · 3 of 3

Which team gains most from sending LLM spans to the APM it already uses?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic