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.acquireReleaseExit that calls the releaser on interruption. But it would be even better to have a hint of what’s going with otel.status_description == "interrupted". UPDATE: there is something in otel.status_description in 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.
finalizeSpanUsingEffect is using tapErrorCause, but it looks like tapErrorCause does not catch an interruption.
By the way, the same problem is presumably in v4 since .exit does not intercept an interruption either.
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:
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.finalizeSpanUsingEffectis usingtapErrorCause, but it looks liketapErrorCausedoes not catch an interruption.By the way, the same problem is presumably in v4 since
.exitdoes not intercept an interruption either.