logo
pub struct SentryLayer<S> { /* private fields */ }
Expand description

Provides a tracing layer that dispatches events to sentry

Implementations

Sets a custom event filter function.

The filter classifies how sentry should handle Events based on their Metadata.

Sets a custom event mapper function.

The mapper is responsible for creating either breadcrumbs or events from Events.

Sets a custom span filter function.

The filter classifies whether sentry should handle [tracing::Span]s based on their Metadata.

Trait Implementations

Returns the “default value” for a type. Read more

When a new Span gets created, run the filter and start a new sentry span if it passes, setting it as the current sentry span.

When a span gets closed, finish the underlying sentry span, and set back its parent as the current sentry span.

Implement the writing of extra data to span

Notifies this layer that an event has occurred.

Performs late initialization when attaching a Layer to a Subscriber. Read more

Registers a new callsite with this layer, returning whether or not the layer is interested in being notified about the callsite, similarly to Subscriber::register_callsite. Read more

Returns true if this layer is interested in a span or event with the given metadata in the current Context, similarly to Subscriber::enabled. Read more

Notifies this layer that a span with the ID span recorded that it follows from the span with the ID follows. Read more

Notifies this layer that a span with the given ID was entered.

Notifies this layer that the span with the given ID was exited.

Notifies this layer that a span ID has been cloned, and that the subscriber returned a different ID. Read more

Composes this layer around the given Layer, returning a Layered struct implementing Layer. Read more

Composes this Layer with the given Subscriber, returning a Layered struct that implements Subscriber. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.