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) |
abstract long |
generateSpanId() |
abstract DDTraceId |
generateTraceId() |
public static IdGenerationStrategy fromName(String name)
public abstract DDTraceId generateTraceId()
public abstract long generateSpanId()