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