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