Struct sentry_tower::SentryHttpLayer
source · pub struct SentryHttpLayer { /* private fields */ }
Expand description
Tower Layer that logs Http Request Headers.
The Service created by this Layer can also optionally start a new performance monitoring transaction for each incoming request, continuing the trace based on incoming distributed tracing headers.
The created transaction will automatically use the request URI as its name.
This is sometimes not desirable in case the request URI contains unique IDs
or similar. In this case, users should manually override the transaction name
in the request handler using the Scope::set_transaction
method.
Implementations§
source§impl SentryHttpLayer
impl SentryHttpLayer
sourcepub fn with_transaction() -> Self
pub fn with_transaction() -> Self
Creates a new Layer which starts a new performance monitoring transaction for each incoming request.
Trait Implementations§
source§impl Clone for SentryHttpLayer
impl Clone for SentryHttpLayer
source§fn clone(&self) -> SentryHttpLayer
fn clone(&self) -> SentryHttpLayer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for SentryHttpLayer
impl Default for SentryHttpLayer
source§fn default() -> SentryHttpLayer
fn default() -> SentryHttpLayer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SentryHttpLayer
impl RefUnwindSafe for SentryHttpLayer
impl Send for SentryHttpLayer
impl Sync for SentryHttpLayer
impl Unpin for SentryHttpLayer
impl UnwindSafe for SentryHttpLayer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more