public abstract class IdGenerationStrategy extends Object
The reason this is not an ENUM is to allow future changes that are crosscutting and configuration based, for example 128 bit trace ids et.c., without changing the public API.
Modifier and Type | Method and Description |
---|---|
static IdGenerationStrategy |
fromName(String name) |
static IdGenerationStrategy |
fromName(String name,
boolean traceId128BitGenerationEnabled) |
long |
generateSpanId() |
DDTraceId |
generateTraceId() |
public static IdGenerationStrategy fromName(String name)
public static IdGenerationStrategy fromName(String name, boolean traceId128BitGenerationEnabled)
public DDTraceId generateTraceId()
public long generateSpanId()