Class IdGenerator
Defined in File id_generator.h
Inheritance Relationships
Derived Type
public opentelemetry::sdk::trace::RandomIdGenerator
(Class RandomIdGenerator)
Class Documentation
-
class IdGenerator
IdGenerator provides an interface for generating Trace Id and Span Id
Subclassed by opentelemetry::sdk::trace::RandomIdGenerator
Public Functions
-
inline IdGenerator(bool is_random)
-
virtual ~IdGenerator() = default
-
virtual opentelemetry::trace::SpanId GenerateSpanId() noexcept = 0
Returns a SpanId represented by opaque 128-bit trace identifier
-
virtual opentelemetry::trace::TraceId GenerateTraceId() noexcept = 0
Returns a TraceId represented by opaque 64-bit trace identifier
-
inline bool IsRandom() const
-
inline IdGenerator(bool is_random)