pub struct StdLogFieldsBuilder<'a>(/* private fields */);
Expand description
A specialized span log builder for the standard log fields.
Implementations§
Source§impl<'a> StdLogFieldsBuilder<'a>
impl<'a> StdLogFieldsBuilder<'a>
Sourcepub fn event<T>(&mut self, event: T) -> &mut Self
pub fn event<T>(&mut self, event: T) -> &mut Self
Adds the field LogField::new("event", event)
.
event
is a stable identifier for some notable moment in the lifetime of a Span.
For instance, a mutex lock acquisition or release or the sorts of lifetime events
in a browser page load described in the Performance.timing specification.
E.g., from Zipkin, "cs"
, "sr"
, "ss"
, or "cr"
.
Or, more generally, "initialized"
or "timed out"
.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for StdLogFieldsBuilder<'a>
impl<'a> RefUnwindSafe for StdLogFieldsBuilder<'a>
impl<'a> Send for StdLogFieldsBuilder<'a>
impl<'a> Sync for StdLogFieldsBuilder<'a>
impl<'a> Unpin for StdLogFieldsBuilder<'a>
impl<'a> !UnwindSafe for StdLogFieldsBuilder<'a>
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