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§
source§impl 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.