Struct opentelemetry_sdk::trace::RandomIdGenerator
source · [−]pub struct RandomIdGenerator { /* private fields */ }
Available on crate feature
trace
only.Expand description
Default IdGenerator
implementation.
Generates Trace and Span ids using a random number generator.
Trait Implementations
sourceimpl Clone for RandomIdGenerator
impl Clone for RandomIdGenerator
sourcefn clone(&self) -> RandomIdGenerator
fn clone(&self) -> RandomIdGenerator
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RandomIdGenerator
impl Debug for RandomIdGenerator
sourceimpl Default for RandomIdGenerator
impl Default for RandomIdGenerator
sourcefn default() -> RandomIdGenerator
fn default() -> RandomIdGenerator
Returns the “default value” for a type. Read more
sourceimpl IdGenerator for RandomIdGenerator
impl IdGenerator for RandomIdGenerator
sourcefn new_trace_id(&self) -> TraceId
fn new_trace_id(&self) -> TraceId
Generate a new TraceId
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more