Skip to content

fix(server): request span continues the caller's trace (#660) - #847

Closed
athvin wants to merge 1 commit into
mainfrom
issue/660-trace-continuation
Closed

athvin wants to merge 1 commit into
mainfrom
issue/660-trace-continuation

Conversation

@athvin

@athvin athvin commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Closes #660

🚧 Claimed by an agent session — 2026-11-08T08:22:30Z, session 01a1b892-4cde-7a53-bb3e-9ed2e764acdc on Mac.
The claim is this open draft PR: closing it releases the ticket.

Post-merge is part of this pull request. The ledger below records whether
the follow-up work actually happened. /land-pr closes it.

What

Live re-probe of trace continuation on the deployed er-api: send a request carrying a known traceparent, confirm the trace id appears in the exported span. (The in-repo gate half was split to #840 and already landed.)

Why

#660's fix merged Nov-7 but was never verified against the running deployment — the exact class of "merged but unproven live" this ticket exists to close.

Proof

Deploy proven: running er-api image is tagged 7fdf5b32, carrying the fix. Probe: blocked on cluster access — see the Context block's Blocker section.

Risk & rollback

Post-merge ledger

Closed by: unclosed

  • main is green with this change on it — the merge SHA, and the run
    that proves it. A later head SHA with this commit as an ancestor counts;
    a cancelled run with zero jobs does not:
  • images built, or correctly never ran because nothing that goes into
    an image changed:
  • deploy converged — proved by a line the running process emitted, not
    by the image digest and not by the workflow conclusion:
  • the push-only surface no pull request can pre-test (deploy, drift,
    kind's nightly leg) is green, or knowingly red for a reason that is not
    this change:
  • the board card reached Done through the automation rather than by
    hand, and the issue closed:
  • follow-ups are open for everything deferred here — numbers:
  • what was learned is written down where the next session will find it
    (a skill, a reference, memory) — or nothing new was learned:

Specific to this change

Context — plan, discoveries, measurements, files

Plan

  1. Confirm the deployed er-api carries the trace-continuation fix. ✅ (image tag 7fdf5b32, post-fix)
  2. Reach web-api with a request carrying a known traceparent. ⛔ blocked — see Discoveries.
  3. Query the span store for that trace id and confirm the exported span's lineage.
  4. Record the probe procedure and result in the PR; merge evidence.

Discoveries

  • The deployed er-api image is tagged 7fdf5b32 (ECR), which includes both the Nov-7 trace-continuation fix and today's audit_log.trace_id gate (gate: prove audit_log.trace_id is populated — pg_orgs.rs phase (from #660) #840). The deploy half of this ticket is proven.
  • The probe half is blocked by access, not by code. Every service on er-dev is ClusterIP; there is no ingress and no ELB, so port-forward is the only path from a laptop. The new read-only access entry (fix(infra): grant PlatformReadOnly a view access entry on er-dev (#839) #844) grants AmazonEKSViewPolicy, which has no pods/portforward create (kubectl auth can-i → no). All local SSO profiles share one expired SSO token; only er-readonly has still-valid cached role creds, so PlatformAdmin is unavailable without a human aws sso login (device-code flow).
  • The span store is OpenObserve (ClusterIP, observability/openobserve:5080); the awsxray exporter errors by design until CloudWatch Transaction Search is enabled (collector values note), so X-Ray is not a read path. Reading spans needs port-forward too.
  • The BFF sets a traceparent on every upstream request (frontend/src/proxy.ts:58), so once reachable, any request through the BFF exercises continuation; the probe's known-id traceparent directly to er-api is the stronger form because it removes the BFF hop from the claim.

Blocker

Needs ONE of: (a) a human runs aws sso login (SSO session er), after which the er-platform profile (PlatformAdmin) can port-forward and the probe takes minutes; or (b) a scoped terraform grant of pods/portforward to the read-only role on er-dev — a posture broadening worth a human/coordinator decision. Asked the coordinator 2026-11-08.

Files

None yet — this ticket may merge as evidence-only or carry the doc note from #846.

@athvin

athvin commented Nov 8, 2026

Copy link
Copy Markdown
Owner Author

Parking as blocked on a human step, per coordinator decision 2026-11-08. Deploy half proven (er-api runs image 7fdf5b32, which carries the Nov-7 trace-continuation fix and today's #840 gate). The live re-probe needs pods/portforward on er-dev: every service is ClusterIP with no ingress/ELB, the read-only entry (#844) deliberately lacks port-forward, and broadening it is a posture call reserved for the user. The clean unblock is one aws sso login (SSO session er), after which the er-platform profile (PlatformAdmin) can port-forward and the probe takes minutes. Full diagnosis in this PR's Context block. Closing this draft releases the claim; any session with working admin access can pick #660 up.

@athvin athvin closed this Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The request span starts a new trace instead of continuing the caller's

2 participants