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

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

Interface for generating IDs

Required methods

fn new_trace_id(&self) -> TraceId

Generate a new TraceId

fn new_span_id(&self) -> SpanId

Generate a new SpanId

Loading content...

Implementors

impl IdGenerator for IdGenerator[src]

fn new_trace_id(&self) -> TraceId[src]

Generate new TraceId using thread local rng

fn new_span_id(&self) -> SpanId[src]

Generate new SpanId using thread local rng

impl IdGenerator for XrayIdGenerator[src]

fn new_trace_id(&self) -> TraceId[src]

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

fn new_span_id(&self) -> SpanId[src]

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

Loading content...