mirror of
https://github.com/stack-auth/stack.git
synced 2026-07-20 21:29:36 +08:00
The browser sync-stack fallback can mix ambient frames from overlapping async
flows into the propagated context (fundamental until TC39 AsyncContext ships —
the span-context loader will pick it up like ALS when it does). Give affected
callers an exact override:
- the auto fetch wrapper never overwrites an explicitly-set
x-hexclave-span-context header — caller intent beats ambient
- getSpanPropagationHeaders({ parentIds, root }): root drops ambient parents
(same semantics as TrackOptions.root), so one request can be pinned to
exactly one span; the segment id (identity, not parenting) always rides
|
||
|---|---|---|
| .. | ||
| cli | ||
| dashboard-ui-components | ||
| js | ||
| next | ||
| react | ||
| sc | ||
| shared | ||
| shared-backend | ||
| tanstack-start | ||
| template | ||
| ui | ||