Effect CommunityEC
Effect Communityβ€’2mo agoβ€’
27 replies
Patrick Roza

Issues with Tracing and Span Inheritance in Effect-TS

lately my tracing is a mess.
I found out that https://github.com/Effect-TS/effect/pull/5433/files causes unintentional inheriting of spans during startup, e.g when spawning long running fibers via FiberSet.run, and for schedules; the previous run appearing as the parent of the next run.
Still trying to figure out if this is a logic error on my side, but my hunch is that due to the fiber runtime of effect, you cannot rely on the external span context, or to make it reliable, it must somehow be kept in sync with the active fiber?
Hoping to get to a repro shortly πŸ™‚
screenshot-2025-11-11_08-49-13.png
screenshot-2025-11-11_08-48-36.png
screenshot-2025-11-11_08-48-20.png
Was this page helpful?