Skip to content

Part 3 · Blueprint 15

Observability, Distributed Tracing & Error Budget SLOs

15 min reading · Sources · Editorial review pending

A green component metric is not proof that the user action succeeded.

More
20px
Reading list
Page details

Published date · Last edited:

Draft edition. Editorial review and supplementary reading recommendations are still being completed.

Format: Architecture walkthrough. Prerequisites: the beginner bootcamp. Chapter prerequisites: Back-of-Envelope Capacity Estimation, Latency Numbers & Networking Foundations.

Sixty-second mental model

Problem: A green component metric is not proof that the user action succeeded.

Use: Keep the event denominator stable while joining supporting evidence.

Design boundary: Define success from the user operation, then choose signals. A healthy process and a low average latency do not prove successful checkout. Metrics summarize populations; traces connect work; logs preserve selected event detail.

Layer 1 · Intuition

Hypothetical scenario: Northwind is designing observability and slos. Maya represents product requirements, Dev implementation and Priya reliability. The team must agree what one observation means and which component owns the user outcome definition.

Think of a receipt joined to its delivery history. Separate the requester from user outcome definition, then identify the retained evidence needed after failure.

Authority
The entitled state owner.
Invariant
A rule preserved across concurrency and failures.
Availability
Ability to provide a specified service, measured under a defined indicator and failure model. Analogy: Whether the relevant counter can deliver the promised result.
Error budget
The allowed amount of bad service implied by an objective and its measurement window. Analogy: A limited allowance for missed service promises.
SLA
Service-level agreement: an agreement describing service commitments and possible consequences. Analogy: A contract attaching terms to the promised service.
SLI
Service-level indicator: a defined measurement of service behavior. Analogy: The actual score counted from customer outcomes.
SLO
Service-level objective: a target for an indicator over a defined window. Analogy: The service score the team aims to maintain.

Architecture and worked reasoning

Design boundary: Define success from the user operation, then choose signals. A healthy process and a low average latency do not prove successful checkout. Metrics summarize populations; traces connect work; logs preserve selected event detail.

Responsibilities on the request path

Observability and SLOs: responsibilities and request directionDefine success from the user operation, then choose signals. A healthy process and a low average latency do not prove successful checkout. Metrics summarize populations; traces connect work; logs preserve selected event detail.User requestService spansTelemetry pipelineSLO evaluation
Define success from the user operation, then choose signals. A healthy process and a low average latency do not prove successful checkout. Metrics summarize populations; traces connect work; logs preserve selected event detail.

Workload and limiting resource

Hypothetical monthly request SLO is 99.9% success over 1,000,000 eligible requests. Allowed failures are 1,000,000 × 0.001 = 1,000. An incident with 600 failures consumes 60% of that request-based budget. It is not equivalent to 43.2 minutes unless a separate time-based model and 30-day period are chosen.

Keep the units attached to each intermediate result. The assumptions above describe a hypothetical exercise, not observed vendor capacity. A real capacity decision also needs a measured service curve, skew, recovery traffic and an explicit admission policy for overload.

Mutation or publication path

Observability and SLOs: mutation boundaryRecord the operation outcome and relevant timing. Then: Propagate correlation across dependency boundaries. Then: Aggregate with bounded-cardinality dimensions and privacy controls.Step 1
Record the operation outcome and relevant timing.
Step 2
Propagate correlation across dependency boundaries.
Step 3
Aggregate with bounded-cardinality dimensions and privacy controls.
Record the operation outcome and relevant timing. Then: Propagate correlation across dependency boundaries. Then: Aggregate with bounded-cardinality dimensions and privacy controls.
  1. Record the operation outcome and relevant timing.
  2. Propagate correlation across dependency boundaries.
  3. Aggregate with bounded-cardinality dimensions and privacy controls.

Observation and recovery path

Observability and SLOs: observation boundaryQuery a defined population and time window. Then: Inspect tail distributions and missing telemetry. Then: Follow a trace to the responsible dependency before proposing a fix.Step 1
Query a defined population and time window.
Step 2
Inspect tail distributions and missing telemetry.
Step 3
Follow a trace to the responsible dependency before proposing a fix.
Query a defined population and time window. Then: Inspect tail distributions and missing telemetry. Then: Follow a trace to the responsible dependency before proposing a fix.
  1. Query a defined population and time window.
  2. Inspect tail distributions and missing telemetry.
  3. Follow a trace to the responsible dependency before proposing a fix.

Failure that changes the decision

Hypothetical scenario: User identifiers become metric labels. Cardinality grows with the user population and overwhelms storage; put high-cardinality investigation data in appropriately controlled logs/traces instead.

Attempt this decision before reading the explanation

Could an availability dashboard look better after rejecting difficult requests?

Yes, if those rejections are excluded from the denominator without justification. Define eligible operations and failure semantics before computing the SLI; report exclusions and lost telemetry.

Supporting mechanism analysis

Hypothetical scenario: Northwind. Maya represents product, Dev implementation and Priya reliability. The following workflow develops the underlying mechanism.

Hypothetical scenario. At Northwind, Sam needs to connect a slow checkout to a specific dependency.

In short. Use traces for causality and metrics for service outcomes. Carry correlation through each remote handoff.

Hypothetical scenario. A reservation service reports healthy database latency while buyers complain that confirmations never arrive. The write commits, but a downstream consumer is stuck. The request endpoint's success counter and the user's completed journey now describe different things.

Observability begins with the question the evidence must answer. Did the service accept a request, commit the intended effect, complete the workflow, or present the result to the caller? Each boundary can succeed while a later one fails. A large volume of telemetry does not make those boundaries equivalent.

A mean combines fast and slow requests and can conceal a small affected tenant or operation. An overall success ratio can also improve when the failing path stops receiving traffic. Define the eligible population before interpreting a favorable aggregate.

Internal health is necessary evidence but not the whole user outcome. A process can answer a health probe while lacking permission to publish events. A queue can accept messages while completion falls behind. A service can return a response quickly because it incorrectly rejected valid work.

Start from the journey and enumerate the stages that establish its outcome. Then ask which measurements detect a broken stage, which merely suggest a cause, and which independent evidence can distinguish failure from a broken telemetry pipeline. Avoid a dashboard whose only evidence of health comes from the component being investigated.

Metrics summarize defined populations over time; logs record selected events; traces relate instrumented operations across services. None is inherently a complete audit of business effects. Preserve authoritative operation state for reconciliation, and use telemetry to explain how requests approached that state.

A trace identifier helps correlate observations. W3C Trace Context standardizes propagation fields between components; it does not guarantee instrumentation, collection or storage. Keep request correlation distinct from authentication and operation idempotency.

Useful service indicators name their numerator, denominator, time window and measurement boundary. For example, completion within a declared deadline is a different indicator from successful HTTP acceptance. Define how pending work, explicit rejection and missing observations enter the calculation.

Sam needs evidence about a checkout that crossed the application, Postgres and a card-provider boundary. OpenTelemetry spans describe timed operations and their relationships, while metrics summarize repeated observations. Logs can retain selected events and details. None of these representations establishes business authorization automatically; a separate durable audit record answers who was permitted to perform the operation and what was accepted.

Trace context carries identifiers across a handoff. The receiving service still has to create and export its observation, and collection and retention can lose data. For an asynchronous job, preserve the causal relationship without claiming that all work happened inside one uninterrupted request. A missing span can mean missing instrumentation or loss rather than proof that a call never happened.

Consider a hypothetical day with twenty thousand eligible requests and thirty failures under a declared request-based objective. The failure fraction is 30 / 20,000 = 0.0015 = 0.15%, so the observed success fraction is 99.85%. A 99.9% request objective would allow 20,000 × 0.001 = 20 failures, making this sample ten failures beyond its allowance. This calculation uses requests as the denominator; it does not translate directly into minutes of downtime.

Sampling and aggregation shape investigation. A five-percent trace sample from twenty thousand runs would retain about one thousand if selection follows that rate, leaving about nineteen thousand without a retained trace. Keep the required audit evidence independently. For alerting, distinguish a low error count caused by healthy work from one caused by no traffic reaching the measured service. Define the user boundary, eligible events and missing-data behavior before choosing the dashboard.

Hypothetical scenario. Choose a 30-day measurement window. Its duration is 30 × 24 × 60 × 60 = 2,592,000 seconds. A chosen time-based availability objective of 99.9% permits 2,592,000 × (1 − 0.999) = 2,592 seconds, or 43.2 minutes, of unavailable time under that indicator's definition.

A separate request-based example receives exactly 10,000 eligible requests per second throughout the window. Its count is 10,000 × 2,592,000 = 25,920,000,000 requests. With a chosen 99.9% successful-request objective, the allowed unsuccessful count is 25,920,000,000 × 0.001 = 25,920,000.

At a separately chosen 99.99% time-based objective, the same window permits 2,592,000 × 0.0001 = 259.2 seconds, or 4.32 minutes. These budgets describe different populations. With variable traffic, a brief busy-period outage can consume a large request-based budget while using little elapsed time. Partial failure can affect some operations throughout the window without making the whole service unavailable under a binary time-based definition.

For sampling, choose 1,000 independent traces, each retained independently with probability 0.1. The expected retained count is 1,000 × 0.1 = 100, not a promise that exactly 100 are stored. If a rare failure occurs once, this head-selection model retains its trace with probability 0.1, even though the overall traffic sample looks substantial.

For metric dimensions, choose 20 operation names, five result categories and three regions. Their full combination contains 20 × 5 × 3 = 300 label sets before further histogram or storage representation. Adding 100,000 customer identifiers would expand that theoretical combination to 30,000,000. Actual emitted combinations may be fewer, but an unbounded identity dimension changes the resource problem.

The primary reference establishes this concrete distinction: trace Context standardizes propagation, not complete collection or storage.

OpenTelemetry's sampling guidance distinguishes early head decisions from tail decisions using later information. Tail selection can prioritize observed error traces, but cannot recover spans that never arrived. Buffering, late spans, capacity and policy behavior remain operational concerns.

Telemetry can also be systematically biased. A process that crashes before exporting may omit the very request being investigated. Sampling only completed requests can exclude stalled work. A duration histogram measured at one boundary should not be presented as another boundary's user latency.

Protect the application's resource budget from its measurement path. Backpressure or excessive logging can worsen an outage; dropping evidence changes what investigators can conclude. Monitor collection health and document the chosen loss and buffering behavior rather than claiming complete capture.

Layer 3 · Internals

Trade-offs and limits

ApproachProvidesRequires
Head samplingMakes an early bounded decision about trace collection.Later failures cannot recover spans that were never collected.
Tail samplingCan choose from observed trace outcomes.Collector memory, completeness and delayed decisions limit what can be retained.

Recovery decision

Hypothetical scenario: User identifiers become metric labels. Cardinality grows with the user population and overwhelms storage; put high-cardinality investigation data in appropriately controlled logs/traces instead.

Yes, if those rejections are excluded from the denominator without justification. Define eligible operations and failure semantics before computing the SLI; report exclusions and lost telemetry.

Write your design before revealing the review

Could an availability dashboard look better after rejecting difficult requests?

Evidence you can explain in your own design

Drafts and self-review are stored only in this browser. They are separate from reading completion.

Compare your decision

Yes, if those rejections are excluded from the denominator without justification. Define eligible operations and failure semantics before computing the SLI; report exclusions and lost telemetry.

User identifiers become metric labels. Cardinality grows with the user population and overwhelms storage; put high-cardinality investigation data in appropriately controlled logs/traces instead.

Check your understanding

Could an availability dashboard look better after rejecting difficult requests?

Yes, if those rejections are excluded from the denominator without justification. Define eligible operations and failure semantics before computing the SLI; report exclusions and lost telemetry.

How would you recover from this failure: User identifiers become metric labels. Cardinality grows with the user population and overwhelms storage; put high-cardinality investigation data in appropriately controlled logs/traces instead.

Start with the exact boundary that failed. Record the operation outcome and relevant timing. Propagate correlation across dependency boundaries. Aggregate with bounded-cardinality dimensions and privacy controls. Then recover evidence through the observation path: Query a defined population and time window. Inspect tail distributions and missing telemetry. Follow a trace to the responsible dependency before proposing a fix. Preserve the distinction between a confirmed state change and an unavailable response.

Which assumption in the worked calculation would a burst or concentrated tenant invalidate first?

Hypothetical monthly request SLO is 99.9% success over 1,000,000 eligible requests. Allowed failures are 1,000,000 × 0.001 = 1,000. An incident with 600 failures consumes 60% of that request-based budget. It is not equivalent to 43.2 minutes unless a separate time-based model and 30-day period are chosen. Recompute the affected resource rather than multiplying unrelated storage and network budgets by the same factor. Define success from the user operation, then choose signals. A healthy process and a low average latency do not prove successful checkout. Metrics summarize populations; traces connect work; logs preserve selected event detail.

Which component in this topology could be removed from a smaller first deployment?

User request, Service spans, Telemetry pipeline, SLO evaluation name responsibilities, not a requirement for separate processes. Co-locate responsibilities when their transaction, trust and capacity boundaries permit it. Record the operation outcome and relevant timing.

What evidence must a caller have before relying on the observation path?

Query a defined population and time window. Inspect tail distributions and missing telemetry. Follow a trace to the responsible dependency before proposing a fix. Yes, if those rejections are excluded from the denominator without justification. Define eligible operations and failure semantics before computing the SLI; report exclusions and lost telemetry.

45-minute interview rubric

  1. 00–05: scope observation and user outcome definition.
  2. 05–12: identify the limiting resource and derive the domain workload above, retaining units and assumptions.
  3. 12–28: draw user outcome definition, numbered writes and reads.
  4. 28–40: challenge recovery: Keep the event denominator stable while joining supporting evidence.
  5. 40–45: defend request_id placement, observations and remaining assumptions.

Go deeper

  • Signals | OpenTelemetry · Primary document · opentelemetry.io. Keep the event denominator stable while joining supporting evidence. Verified 2026-10-26.
  • Sampling | OpenTelemetry · Primary document · opentelemetry.io. Keep the event denominator stable while joining supporting evidence. Verified 2026-10-26.
  • Traces | OpenTelemetry · Primary document · opentelemetry.io. Keep the event denominator stable while joining supporting evidence. Verified 2026-10-26.
  • Trace Context · Primary document · www.w3.org. Keep the event denominator stable while joining supporting evidence. Verified 2026-10-26.

Decision log

Keep the event denominator stable while joining supporting evidence.

Preserve observation identity and user outcome definition ownership.

Revisit changed workload, observations or recovery objectives.