Page MenuHomePhabricator

Emit structured logs and OpenTelemetry traces for individual storage operations
Closed, ResolvedPublic

Description

A typical reader-triggered path can fan out through durable storage lookup → fragment-level memcached check → orchestrator call → composition → durable storage write-back, and a single trace carrying a consistent trace ID through all of those layers is the only practical way to diagnose "why was this one request slow, or why did it produce this specific wrong output".

Logs must at minimum carry the (topic, language, section) key, the store operation, the outcome, the generation timestamp of the entry touched, and a correlation ID shared with the trace. Spans should cover each of the layers above with enough attributes to attribute latency and errors to the right layer. This is not optional: without it, any non-aggregate incident becomes a debugging blind spot the readiness hypothesis cannot afford.

Event Timeline

gengh renamed this task from Emit structured logs and OpenTelemetry traces for individual cache operations to Emit structured logs and OpenTelemetry traces for individual storage operations.Apr 27 2026, 6:59 PM
gengh updated the task description. (Show Details)
Jdforrester-WMF assigned this task to ecarg.

Logs done; let's not do spans.