Evalscore
Tracing model and tool calls
One trace per request: every LLM call, retrieval, tool call and decision, with inputs, outputs, tokens, cost and timing.
What it is and why it exists
LLM apps are multi-step and non-deterministic, so logs aren’t enough. A trace is a tree of spans — request → retrieval → rerank → model call → tool call → model call — each with its inputs, outputs, latency, token usage and cost. It’s the raw material for debugging, error analysis and evals.
Quick prototype
Print statements.
In production, at scale
Tracing on every request (sampled for volume), PII redaction, trace IDs propagated across services and agents, prompt and model versions on spans, links from user feedback to traces, and retention policies.
Vendors and tools
| Langfuse / LangSmith / Braintrust / Arize Phoenix / W&B Weave | LLM tracing platforms |
|---|---|
| OpenTelemetry + OpenLLMetry / OpenInference | Open instrumentation |
| Datadog / Honeycomb LLM observability | APM vendors |
On AWS: AgentCore Observability; CloudWatch generative AI observability; X-Ray / ADOT for distributed traces; Bedrock invocation logging.
How it fails
- Traces with raw customer PII
- No link between a thumbs-down and the trace that produced it
What the interviewer asks next
What goes on an LLM span?
Model and version, prompt version, parameters, input and output (redacted), token counts including cached and reasoning tokens, latency (TTFT, total), cost and any error.