Struct Recorder
pub struct Recorder { /* private fields */ }Expand description
A handle for a transport to record lost Sentry data.
Lost items recorded here will be aggregated into a client report and eventually sent to Sentry. We attempt to send client reports with a future envelope, so recording lost events should not lead to increased requests to Sentry.
Cloning has Arc-like semantics in the sense that clones record into the same client report
aggregator.
As client reports require atomics for aggregation, this struct’s methods are no-ops on platforms which lack support for 8-bit and/or 64-bit atomic operations.
Implementations§
§impl Recorder
impl Recorder
pub fn record_lost_data<L>(&self, data: &L, reason: TransportLossReason)where
L: LossSource,
pub fn record_lost_data<L>(&self, data: &L, reason: TransportLossReason)where
L: LossSource,
Record an envelope item lost for a given reason.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Recorder
impl RefUnwindSafe for Recorder
impl Send for Recorder
impl Sync for Recorder
impl Unpin for Recorder
impl UnsafeUnpin for Recorder
impl UnwindSafe for Recorder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more