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§
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