pub struct TracingUtils;Expand description
Tracing utilities for manual instrumentation
Implementations§
Source§impl TracingUtils
impl TracingUtils
Sourcepub fn create_span(name: &'static str) -> Span
pub fn create_span(name: &'static str) -> Span
Create a new trace span with the current tracing context
Sourcepub fn add_span_attributes(attributes: HashMap<String, AttributeValue>)
pub fn add_span_attributes(attributes: HashMap<String, AttributeValue>)
Add attributes to current span
Sourcepub fn record_event(
event_name: &str,
attributes: HashMap<String, AttributeValue>,
)
pub fn record_event( event_name: &str, attributes: HashMap<String, AttributeValue>, )
Record an event in the current span
Auto Trait Implementations§
impl Freeze for TracingUtils
impl RefUnwindSafe for TracingUtils
impl Send for TracingUtils
impl Sync for TracingUtils
impl Unpin for TracingUtils
impl UnwindSafe for TracingUtils
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