Effect CommunityEC
Effect Community2y ago
4 replies
ferossgp

Missing an Effect.withSpan in the telemetry trace when nested in RequestResolver and a Layer

I'm currently learning how to use telemetry with effect, and I noticed that one of my Layer that uses RequestResolver does not show spans inside the request resolver as a part of the same trace.

I'm assuming I misconfigured some context/scope but could not figure out based on the documentation what I'm missing.

I've created this one file example that replicates this behavior https://gist.github.com/Ferossgp/168cd9bbe0db6bfafc94b198c9c38021

The span that is missing ThisSpanIsMissingInTrace

I would appreciate if someone could point me to what I'm missing.

Thank you! 🙏
Gist
GitHub Gist: instantly share code, notes, and snippets.
debug.ts
Was this page helpful?