Trait opentelemetry_sdk::trace::IdGenerator
source · 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§
sourcefn new_trace_id(&self) -> TraceId
fn new_trace_id(&self) -> TraceId
Generate a new TraceId
sourcefn new_span_id(&self) -> SpanId
fn new_span_id(&self) -> SpanId
Generate a new SpanId