pub struct PerformanceSpan { /* private fields */ }Expand description
Performance tracing span for Bitcoin operations
Implementations§
Source§impl PerformanceSpan
impl PerformanceSpan
Sourcepub fn with_correlation_id(
name: impl Into<String>,
correlation_id: CorrelationId,
) -> Self
pub fn with_correlation_id( name: impl Into<String>, correlation_id: CorrelationId, ) -> Self
Create a span with an existing correlation ID
Sourcepub fn correlation_id(&self) -> &CorrelationId
pub fn correlation_id(&self) -> &CorrelationId
Get the correlation ID
Sourcepub fn end_with_error(self, error: &str)
pub fn end_with_error(self, error: &str)
End with error logging
Auto Trait Implementations§
impl Freeze for PerformanceSpan
impl !RefUnwindSafe for PerformanceSpan
impl Send for PerformanceSpan
impl Sync for PerformanceSpan
impl Unpin for PerformanceSpan
impl !UnwindSafe for PerformanceSpan
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