pub struct Span { /* private fields */ }
Expand description
Represents a unit of work or operation
Implementations§
Source§impl Span
impl Span
Sourcepub fn set_attribute(&self, name: &str, value: &AttributeValue)
pub fn set_attribute(&self, name: &str, value: &AttributeValue)
Set an attribute on the span
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Span
impl RefUnwindSafe for Span
impl Send for Span
impl Sync for Span
impl Unpin for Span
impl UnwindSafe for Span
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