Pick an observability stack without locking in

L3SeniorTrade-off12 minSystem designDesign review

RolesAI Evaluation and ReliabilityInference EngineeringAI Data Systems

The question

Your team must choose an observability stack for a new model service. Half the team wants an all-in-one platform with evals, prompt versions and session replays. The other half wants a thin gateway that records every call and nothing more. How do you decide, and which pattern lets you avoid the choice?

Answer it first, aloud or on paper. Then open the answer.

The answer

Show short answer

Decide on four axes: the framework you run on, the license you can accept, the budget, and whether you must self-host. A bundled development platform fits a team that iterates on prompts and needs evals tied to traces. A gateway or telemetry tool fits a team that needs portable instrumentation that does not depend on a framework. The pattern that avoids the choice is to emit OpenTelemetry spans with the GenAI conventions from every call and ship them to more than one place: a gateway for day-to-day, an eval platform for regressions, and an archive for long-term analysis.

Show full answer

Two categories of tool

Development platforms bundle observability with evals, prompt management, dataset versioning and session replay. You run experiments, compare prompts and regression-test a new prompt against old winners. Gateway and telemetry tools record the prompt, the response, the tokens, the latency, the model and the cost, and they stop there.

The four axes

AxisQuestion
stackone framework, a raw SDK, or several vendors
licenseopen source only, a source-available license, or commercial
budgeta free tier, a team plan, or an enterprise contract
self-hostrequired, welcome, or never

The trap

Instrumenting inside the agent framework ties the traces to that framework. Instrumenting at the HTTP or SDK layer is portable, so a change of framework or a second framework does not lose the history.

The glue pattern

  1. Emit OpenTelemetry spans with the GenAI conventions from every model call.
  2. Route them to a gateway or telemetry tool for the daily view.
  3. Ship a copy to an eval platform for regressions.
  4. Archive them in a data lake for long-term analysis.

Every tool that reads the conventions can read the same spans, so the stack is a routing decision, not a rewrite.

What to insist on in either case

  • Prompt versions tied to traces. When production regresses, you must be able to bisect to the prompt change that caused it.
  • An eval strategy. Tracing without evaluation is expensive logging.
  • A sampling policy at scale, because full retention at volume is more expensive than the calls it records.

Follow-ups

  1. L3SeniorWhy instrument at the SDK layer rather than inside the framework?

    Show expected answer

    framework hooks tie you to the framework. The SDK layer keeps working when you change frameworks or add a second one.

  2. L3SeniorWhat breaks when prompt versions are not tied to traces?

    Show expected answer

    when production regresses you cannot bisect to the prompt change that caused it.

  3. L4StaffYou ship the same spans to two backends. What do you check so that they agree?

    Show expected answer

    the same conventions version, the same sampling rules on both exporters, and one source of truth for cost attribution, so that two dashboards do not show two bills.

Wrong answers

Show the wrong answers that interviewers hear
  • “Pick the tool with the most features.”

    Features you do not use cost money and couple you. Pick on stack, license, budget and hosting.

  • “Tracing is enough, evals can come later.”

    Traces without evals are logs with a price. A regression hides in them until a user reports it.

  • “The gateway records every call, so skip the platform.”

    A proxy sees calls, not agent steps or sessions. It misses the multi-step traces that an agent regression needs.

Taught in

The observability stack lesson gives the two categories, the four axes and the glue pattern, and the agent observability lesson warns against tracing without evals.