Trait IdGenerator
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§
fn new_trace_id(&self) -> TraceId
fn new_trace_id(&self) -> TraceId
Generate a new TraceId
fn new_span_id(&self) -> SpanId
fn new_span_id(&self) -> SpanId
Generate a new SpanId