Struct sentry_actix::SentryBuilder
source · pub struct SentryBuilder { /* private fields */ }
Expand description
A helper construct that can be used to reconfigure and build the middleware.
Implementations
sourceimpl SentryBuilder
impl SentryBuilder
sourcepub fn start_transaction(self, start_transaction: bool) -> Self
pub fn start_transaction(self, start_transaction: bool) -> Self
Tells the middleware to start a new performance monitoring transaction for each request.
sourcepub fn with_hub(self, hub: Arc<Hub>) -> Self
pub fn with_hub(self, hub: Arc<Hub>) -> Self
Reconfigures the middleware so that it uses a specific hub instead of the default one.
sourcepub fn with_default_hub(self) -> Self
pub fn with_default_hub(self) -> Self
Reconfigures the middleware so that it uses a specific hub instead of the default one.
sourcepub fn emit_header(self, val: bool) -> Self
pub fn emit_header(self, val: bool) -> Self
If configured the sentry id is attached to a X-Sentry-Event header.
sourcepub fn capture_server_errors(self, val: bool) -> Self
pub fn capture_server_errors(self, val: bool) -> Self
Enables or disables error reporting.
The default is to report all errors.
Auto Trait Implementations
impl RefUnwindSafe for SentryBuilder
impl Send for SentryBuilder
impl Sync for SentryBuilder
impl Unpin for SentryBuilder
impl UnwindSafe for SentryBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more