Struct opentelemetry::sdk::trace::RandomIdGenerator
source · pub struct RandomIdGenerator { /* private fields */ }
Expand description
Default IdGenerator
implementation.
Generates Trace and Span ids using a random number generator.
Trait Implementations§
source§impl Clone for RandomIdGenerator
impl Clone for RandomIdGenerator
source§fn clone(&self) -> RandomIdGenerator
fn clone(&self) -> RandomIdGenerator
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RandomIdGenerator
impl Debug for RandomIdGenerator
source§impl Default for RandomIdGenerator
impl Default for RandomIdGenerator
source§fn default() -> RandomIdGenerator
fn default() -> RandomIdGenerator
Returns the “default value” for a type. Read more
source§impl IdGenerator for RandomIdGenerator
impl IdGenerator for RandomIdGenerator
source§fn new_trace_id(&self) -> TraceId
fn new_trace_id(&self) -> TraceId
Generate a new
TraceId
source§fn new_span_id(&self) -> SpanId
fn new_span_id(&self) -> SpanId
Generate a new
SpanId
Auto Trait Implementations§
impl RefUnwindSafe for RandomIdGenerator
impl Send for RandomIdGenerator
impl Sync for RandomIdGenerator
impl Unpin for RandomIdGenerator
impl UnwindSafe for RandomIdGenerator
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