Skip to content

tracing::Instrument::instrumented futures don't propagate to Sentry #675

Open
@Ten0

Description

@Ten0

It seems that the sentry_tracing Layer doesn't take into account the on_enter event provided by tracing for Instrumented futures:

impl<S> Layer<S> for SentryLayer<S>

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions