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 Freeze for RandomIdGenerator
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)