Effect CommunityEC
Effect Community2y ago
5 replies
Rory

Extracting Massaged Stack Traces from Cause.Error for Enhanced Error Reporting

How do I get the massaged stack traces out of a Cause.Error, like what comes out of Effect.logError? I tried following the chain of logError and hit a dead end internally because it iterates over abstract loggers that I cannot figure out where they come from.
Context is I am sending errors to Sentry, sing the error on the cause, which works, though it is not as useful since it is just the internal stack trace of Effect and none of the spans that logError gives.
Was this page helpful?