Trait opentelemetry::trace::IdGenerator[][src]

pub trait IdGenerator: Send + Sync + Debug {
    fn new_trace_id(&self) -> TraceId;
fn new_span_id(&self) -> SpanId; }
This is supported on crate feature trace only.
Expand description

Interface for generating IDs

Required methods

Generate a new TraceId

Generate a new SpanId

Implementors

Generate new TraceId using thread local rng

Generate new SpanId using thread local rng

Generates a new TraceId that can be converted to an X-Ray Trace ID

Generates a new SpanId that can be converted to an X-Ray Segment ID