zio / zio-telemetry

ZIO-powered OpenTelemetry library
https://zio.dev/zio-telemetry
Apache License 2.0
112 stars 55 forks source link

[OpenTracing] Preserve Throwable failures when logging errors #795

Closed ghostdogpr closed 8 months ago

ghostdogpr commented 8 months ago

This is a follow-up to my previous PR: https://github.com/zio/zio-telemetry/pull/786

When the error is already a Throwable, it's a bit pity to wrap it in a FiberFailure because then all errors end up being FiberFailure. When we already have a Throwable, we don't need that wrapping.