PR #283 · pramaan-io/pramaan-app · merged 2026-06-10
One request, ten gateways — and X-Ray shows... nothing.
Why story 1140 had to centralise the trace stamp.
One forgotten header = the whole journey goes dark.
The fix — One source, one stamp, every hop — or the trace goes dark.
sequenceDiagram autonumber participant browser as Browser participant proxy as proxy.ts participant helper as outbound-headers participant backend as Backend (Lambda) participant control as Env / kill switch browser->>proxy: request enters at the edge proxy->>proxy: valid inbound traceparent? respect it proxy->>proxy: else: mint + sample (default 0.1) proxy->>helper: stamp traceparent + correlation id helper->>backend: every gateway / bridge reuses the stamp control->>control: PRAMAAN_OTEL_DISABLED=1 → mint/forward off, correlation stays