Effect CommunityEC
Effect Community3mo ago
10 replies
kesin

Issues with Tracing "Events" in `Effect.die` Usage

I'm having some issues seeing "events" in traces when using Effect.die.

const dieWithUnexpectedError = (message: string) =>
  pipe(
    Effect.logError(message),
    Effect.flatMap(() => Effect.die(new UnexpectedError({ message })))
  )


Is this a situation that isn't handled by DevTools? Or, am I just making a beginner mistake?
Was this page helpful?