[−][src]Trait opentelemetry::trace::IdGenerator
This is supported on crate feature
trace
only.Interface for generating IDs
Required methods
pub fn new_trace_id(&self) -> TraceId
[src]
Generate a new TraceId
pub fn new_span_id(&self) -> SpanId
[src]
Generate a new SpanId
Implementors
impl IdGenerator for IdGenerator
[src]
pub fn new_trace_id(&self) -> TraceId
[src]
Generate new TraceId
using thread local rng
pub fn new_span_id(&self) -> SpanId
[src]
Generate new SpanId
using thread local rng
impl IdGenerator for XrayIdGenerator
[src]
pub fn new_trace_id(&self) -> TraceId
[src]
Generates a new TraceId
that can be converted to an X-Ray Trace ID
pub fn new_span_id(&self) -> SpanId
[src]
Generates a new SpanId
that can be converted to an X-Ray Segment ID