pub trait IdGenerator: Send + Sync + Debug {
    // Required methods
    fn new_trace_id(&self) -> TraceId;
    fn new_span_id(&self) -> SpanId;
}
Expand description

Interface for generating IDs

Required Methods§

source

fn new_trace_id(&self) -> TraceId

Generate a new TraceId

source

fn new_span_id(&self) -> SpanId

Generate a new SpanId

Implementors§