Open
Description
It seems that the sentry_tracing
Layer
doesn't take into account the on_enter
event provided by tracing
for Instrumented
futures:
sentry-rust/sentry-tracing/src/layer.rs
Line 153 in 8cc4848
This implies that Sentry scopes are not properly entered and exited as tracing
scopes are entered/exited.
It seems that the Span
's existence and finish
should be controlled by the existing on_new_span
/on_close
, but scope configuration should be tied to on_enter
/on_exit
instead of also being controlled by on_new_span
and on_close
.