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?
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
- Data rule. Must prompts stay in your network or region? That points to self-hosting or a region-pinned plan.
- Existing stack. If everything already flows to one APM, adding LLM spans there avoids a second login and a second on-call.
- Users. Engineers only, or also product and support reading conversations? Non-engineers need a readable conversation view.
- Volume and sampling. Keeping every trace costs storage. Decide what you sample and how long you keep it.
- 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?
Check yourself · 3 of 3
Which team gains most from sending LLM spans to the APM it already uses?
Practice items, not counted towards your mastery.
Start here
- OpenTelemetry semantic conventions for generative AI (opens in a new tab)StandardFree
The standard gen_ai.* attribute names for model calls, agents, events and metrics.
- Semantic conventions for generative AI client spans (opens in a new tab)StandardFree
Span naming, required and recommended attributes, and which content fields are opt-in.
- Traces (OpenTelemetry) (opens in a new tab)DocsFree
What a span, a trace and a parent-child link are, with the fields every span carries.
More for this topic
- Langfuse documentation: LLM tracing and observability (opens in a new tab)DocsFree
Open-source tracing with sessions, users, tags, scores and self-hosting.
- Arize Phoenix documentation (opens in a new tab)DocsFree
Open-source tracing and evaluation built on OpenTelemetry.
- Datadog LLM Observability (opens in a new tab)DocsFree
How a general APM vendor shows LLM spans next to the rest of your services.