Interface IdGenerator
- All Known Implementing Classes:
RandomIdGenerator
-
Method Summary
Modifier and TypeMethodDescriptionGenerates a new validSpanId.Generates a new validTraceId.static IdGeneratorrandom()Returns aIdGeneratorthat generates purely random IDs, which is the default for OpenTelemetry.
-
Method Details
-
random
Returns aIdGeneratorthat generates purely random IDs, which is the default for OpenTelemetry.The underlying implementation uses
ThreadLocalRandomfor randomness but may change in the future. -
generateSpanId
-
generateTraceId
-