-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Labels
enhancementNew feature or requestNew feature or request
Description
When using zio.telemetry.opentelemetry.tracing (3.1.10), interrupted zio effect are not recorded correctly.
Depending on the way we record a span, the interruption of the fiber can be totally ignored or just not ideally reported:
- when we use spanScoped, at least an error situation is reported because the implementation is using
ZIO.acquireReleaseExitthat calls the releaser on interruption.But it would be even better to have a hint of what’s going with. UPDATE: there is something inotel.status_description == "interrupted"otel.status_descriptionin the case of an interruption (cause.prettyPrint). It is good enough. - when we use span or anything else that relies on finalizeSpanUsingEffect, nothing is reported in the span.
finalizeSpanUsingEffectis usingtapErrorCause, but it looks liketapErrorCausedoes not catch an interruption.
By the way, the same problem is presumably in v4 since .exit does not intercept an interruption either.
grouzen and dontgitit
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request