Interview Prep/Monitoring & Observability/Tracing and OpenTelemetry

Product wants to know which customers experience the slowest checkouts. How do you answer with traces?

IntermediateScenarioTracing and OpenTelemetry
Answer

Situation read → You need customer-level latency analysis without high-cardinality metrics.

What I'd do →

  1. Add customer.id or customer.tier as a span attribute on the checkout span.
  2. Query with TraceQL in Tempo:
{ span.name = "checkout" && duration > 2s } | select(span.customer.tier)
  1. Use TraceQL metrics (| quantile_over_time(duration, 0.99) by (span.customer.tier)) for aggregated views on recent versions.
  2. Keep customer IDs out of Prometheus labels.

Why → Traces hold high-cardinality attributes cheaply; metrics do not.

Interview tip → Split which data goes where: tiers in metrics, IDs in traces.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Tracing and OpenTelemetry