pub struct Builder<T>(/* private fields */);Expand description
A builder for Span
Implementations§
Source§impl Builder<TraceIdStage>
 
impl Builder<TraceIdStage>
Source§impl Builder<TimestampStage>
 
impl Builder<TimestampStage>
Sourcepub fn timestamp(self, timestamp: SafeLong) -> Builder<DurationStage>
 
pub fn timestamp(self, timestamp: SafeLong) -> Builder<DurationStage>
Sets the timestamp field.
Source§impl Builder<DurationStage>
 
impl Builder<DurationStage>
Source§impl Builder<Complete>
 
impl Builder<Complete>
Sourcepub fn push_annotations(self, annotations: Annotation) -> Self
 
pub fn push_annotations(self, annotations: Annotation) -> Self
Adds a value to the annotations field.
Sourcepub fn annotations(
    self,
    annotations: impl IntoIterator<Item = Annotation>,
) -> Self
 
pub fn annotations( self, annotations: impl IntoIterator<Item = Annotation>, ) -> Self
Sets the annotations field.
Sourcepub fn extend_annotations(
    self,
    annotations: impl IntoIterator<Item = Annotation>,
) -> Self
 
pub fn extend_annotations( self, annotations: impl IntoIterator<Item = Annotation>, ) -> Self
Adds values to the annotations field.
Adds an entry to the tags field.
Sets the tags field.
Adds entries to the tags field.
Trait Implementations§
Source§impl Default for Builder<TraceIdStage>
 
impl Default for Builder<TraceIdStage>
Auto Trait Implementations§
impl<T> Freeze for Builder<T>where
    T: Freeze,
impl<T> RefUnwindSafe for Builder<T>where
    T: RefUnwindSafe,
impl<T> Send for Builder<T>where
    T: Send,
impl<T> Sync for Builder<T>where
    T: Sync,
impl<T> Unpin for Builder<T>where
    T: Unpin,
impl<T> UnwindSafe for Builder<T>where
    T: UnwindSafe,
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