Hypothetical scenario. Northwind’s dashboard is green after excess work is rejected, but Maya still sees buyers waiting for reservation confirmation. Dev points to a fast HTTP response chart. Priya asks whether it counts acceptance, completed payment or the result presented to the buyer.
Maya: “Which customer promise does this green line represent?”
Dev: “We need its numerator, denominator and observation point before treating it as success.”
Define the outcome being measured and the evidence that can explain a bad result. Carry the joint latency-and-freshness rule into telemetry, preserving failures and missing observations under the declared policy. The chosen objective arithmetic is hypothetical, not achieved availability.
Which user result does this measurement represent?
The original two-hundred-attempt exercise had one hundred eighty attempts satisfying both presentation time and price-evidence age. Counting fast responses separately from fresh responses could conceal the ten attempts that failed each part. The useful numerator counts the joint acceptable outcome, and the denominator includes every attempt eligible under the declared rule.
Now reservation acceptance and completed payment add other boundaries. Keep separate indicators where they answer different product questions. A pending provider outcome can be truthful behavior under its workflow contract while still consuming time the buyer cares about. Telemetry should expose that distinction rather than collapse it into a generic green state.
A green average hides the affected path
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.
Join the outcome ledger to traces without changing the denominator
Hypothetical scenario. An eligible attempt gets outcome identity U, while trace T links its internal waits. Preserve U even if tracing is unsampled, a client never reports completion or collection fails. A trace is explanatory evidence; the outcome indicator needs its own declared population and missing-data policy.
| Evidence record | Join key | Interpretation |
|---|---|---|
| Outcome | U, cohort, elapsed, age, disposition | Promised boundary |
| Trace | T linked to U when present | Internal causal observations |
| Collection state | sample / loss / missing | Limits confidence in diagnosis |
Record request start, accepted or rejected outcome, elapsed client boundary and source-evidence age for the same attempt. Server spans can explain queueing or a product lookup without proving that the visitor received the selected result. An error-only or slow-only trace sample is useful for diagnosis but cannot be treated as an unbiased rate sample.
Burn-rate alerts need a window, denominator and actionable owner. A missing heartbeat or traffic collapse may require an independent alert because a request-based success ratio can have no eligible observations. Avoid recording secrets or unrestricted tenant payloads merely to make correlation convenient; authorize telemetry access and retain only the evidence the diagnosis needs.
Connect outcomes to supporting evidence
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.
Calculate the budget you actually defined
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.
Calculate the label space before adding a dimension
Hypothetical scenario. Northwind exports one request counter with four normalized route values, three outcome values and two deployment regions. If every combination occurs for each of five instances, the selected series count is 4 × 3 × 2 × 5 = 120. A route value means a template such as /items/{id}, not every literal item address.
Now add tenant identity with 1,000 possible values. Under the same full-combination assumption, the space becomes 120 × 1,000 = 120,000 series. Actual observed combinations may be fewer, but neither an average request rate nor a quiet dashboard bounds that growth. With one selected sample per series every fifteen seconds, a minute has 60 ÷ 15 = 4 samples per series. The two models yield 120 × 4 = 480 versus 120,000 × 4 = 480,000 samples per minute before other metrics or replicas. This is sample-count arithmetic, not a storage-byte or ingestion-capacity benchmark.
Prometheus’s instrumentation guidance explains that label combinations create additional time series and advises care with high-cardinality dimensions. Keep the bounded route/outcome/region counter for aggregate decisions. Put selected tenant and operation identities in access-controlled traces or another investigation store with an explicit retention policy. A random request identifier would continually create new label combinations rather than a stable tenant cohort.
Removing the label at query time does not undo the ingestion already incurred. Review the exported dimensions at the instrumentation boundary, then verify the actual active-series and sample populations. Investigation context remains useful; it needs a representation whose cost and access rules match its purpose.
In the wild: Follow a checkout through OpenTelemetry
The primary reference establishes this concrete distinction: trace Context standardizes propagation, not complete collection or storage.
Selection and loss shape the story
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.
The alert stays silent when traffic disappears
Hypothetical failure scenario. An alert evaluates the fraction of failed responses. A routing error prevents callers from reaching the service, so the service records neither successes nor failures. The alert remains quiet because its data does not represent the failed user requests.
Add evidence at a boundary that can observe the missing journey, such as an independently operated external check or upstream request accounting. Decide how an absent denominator is represented; silently interpreting no data as perfect success creates an unjustified conclusion.
Incident review should preserve the uncertainty. Compare routing changes, arrival counts, operation state and collector health. An empty trace search is evidence that no matching trace was found in that store under that query, not proof that no request or effect occurred.
Do not promote proxies to proof
“Every error trace is retained.” A selection policy can target received errors without guaranteeing every failing path was instrumented and delivered.
“The error budget specifies a universal launch freeze.” The arithmetic derives a budget; an operating policy defines the response, exceptions and recovery criteria.
“The slowest span is the root cause.” The span can include waiting caused elsewhere, omit uninstrumented work or reflect a downstream symptom. Investigate the causal path rather than assigning blame from duration alone.
Measure for a decision
Use telemetry to support explicit decisions: detect user harm, identify a constrained resource, reconcile an uncertain operation or compare a change. State what evidence would change the current explanation. Collect enough context to investigate without copying sensitive request bodies into every log.
Keep metric dimensions bounded and put selected high-cardinality investigation context in an appropriately controlled evidence store. Apply access and retention rules to operation identifiers and trace attributes. Correlation can expose sensitive relationships even without the full payload.
The next lesson follows identity and permission through the same handoffs. The measurement design must explain who may inspect retained context without making tenant identifiers unbounded public metric labels.
Limits of this model
These request-based examples depend on a declared eligibility rule and complete enough outcome accounting. Sampled traces cannot prove the absence of an operation. Retention, privacy, collector failures and clock uncertainty limit telemetry, while authorization evidence needs its own durable record.
Challenge the proposed mechanism
All collected traces succeeded, but half the clients have no completion record. What may the dashboard claim?
Reveal the design reasoning
Only that the observed trace subset succeeded. Apply the declared missing-outcome policy to the full eligible population and investigate collection loss. A green sampled subset does not establish the objective.
Decision and reconsideration: Keep population accounting separate from diagnostic sampling. Review every alert against the decision and response owner it enables.
Qualify the conclusion
No failed requests appear in the service counter, but upstream traffic fell abruptly. Is the journey healthy?
Check the measured population
The service counter cannot establish that. Investigate arrival coverage and independent user-boundary evidence. Missing requests and missing telemetry must not become automatic successes.
A trace ends with timeout after a database call. Did the reservation fail?
Check the measured population
The trace alone does not establish the effect. Reconcile the authoritative logical operation and its result. The response may have been lost after commit.
A 99.9% request objective and a 99.9% time objective use the same percentage. Are their budgets interchangeable?
Check the measured population
No. One counts eligible requests and the other elapsed availability under a definition. Traffic variation and partial failure make their consequences different.
Telemetry helps support investigate an operation, but permission to observe it is another contract. Page 36 follows identity and tenant scope through caches, queues, storage and delayed work.
Northwind decision log
Use traces for causality and metrics for service outcomes.
Carry correlation through each remote handoff.
Keep audit evidence independently of trace sampling.
Go deeper: events and traces
- Book chapter: Observability Engineering, chapter 5: Structured Events Are the Building Blocks of Observability — Charity Majors, Liz Fong-Jones and George Miranda. Choose investigation context deliberately.
- Book chapter: Observability Engineering, chapter 6: Stitching Events into Traces — the same authors. Connect observations across handoffs.
- Video lecture: Observability is a Many-Splendored Thing — Charity Majors. Examine investigation beyond preselected dashboards.
- Primary document: Signals — OpenTelemetry. Inspect the roles of traces, metrics and logs.