You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Child of #660, which is otherwise landed on main. This ticket is the in-repo half of its remaining work; the live re-probe half stays on #660 (blocked on cluster access — see #839).
What
audit_log.trace_id has no gate at any level proving it is ever populated. er-server/tests/telemetry_trace_continuation.rs asserts exported-span lineage; nothing writes an audit row and reads trace_id back.
Add the phase to rust/crates/er-server/tests/pg_orgs.rs (which already tests the audit ledger):
A request carrying a traceparent header writes an audit row whose trace_id is that trace id.
A request without one writes null (or the zero trace id — assert whichever the code intends, and make the code's intent explicit if it is ambiguous).
The machinery exists: pg.rs:1292audit_rows returns trace_id via er_obs::current_trace_id(), and telemetry.rsmake_span adopts an acceptable incoming traceparent. The test only has to prove the two meet in the ledger.
Done when
pg_orgs.rs carries both assertions, make check-e2e is green with them, and the PR ledger is closed.
Size: 0.1w. Split out of #660 by the #655 session under the board's decomposition convention.
Activity
athvin commentedon Nov 8, 2026
Claimed — working in #841 (draft). Closing that PR releases the claim.
test(server): prove audit_log.trace_id is populated from the caller's…