Struct sentry_actix::Sentry
source · pub struct Sentry { /* private fields */ }
Expand description
Reports certain failures to Sentry.
Implementations§
source§impl Sentry
impl Sentry
sourcepub fn with_transaction() -> Sentry
pub fn with_transaction() -> Sentry
Creates a new sentry middleware which starts a new performance monitoring transaction for each request.
sourcepub fn builder() -> SentryBuilder
pub fn builder() -> SentryBuilder
Creates a new middleware builder.
sourcepub fn into_builder(self) -> SentryBuilder
pub fn into_builder(self) -> SentryBuilder
Converts the middleware into a builder.
Trait Implementations§
source§impl<S, B> Transform<S, ServiceRequest> for Sentrywhere
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error>,
S::Future: 'static,
impl<S, B> Transform<S, ServiceRequest> for Sentrywhere S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error>, S::Future: 'static,
§type Response = ServiceResponse<B>
type Response = ServiceResponse<B>
Responses produced by the service.
§type Transform = SentryMiddleware<S>
type Transform = SentryMiddleware<S>
The
TransformService
value created by this factory§type Future = Ready<Result<<Sentry as Transform<S, ServiceRequest>>::Transform, <Sentry as Transform<S, ServiceRequest>>::InitError>>
type Future = Ready<Result<<Sentry as Transform<S, ServiceRequest>>::Transform, <Sentry as Transform<S, ServiceRequest>>::InitError>>
The future response value.
source§fn new_transform(&self, service: S) -> Self::Future
fn new_transform(&self, service: S) -> Self::Future
Creates and returns a new Transform component, asynchronously