-
public abstract class IdGenerationStrategyStrategy for generating trace ids and span ids.
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.
-
-
Constructor Summary
Constructors Constructor Description IdGenerationStrategy(boolean traceId128BitGenerationEnabled)
-
Method Summary
Modifier and Type Method Description static IdGenerationStrategyfromName(String name)static IdGenerationStrategyfromName(String name, boolean traceId128BitGenerationEnabled)DDTraceIdgenerateTraceId()longgenerateSpanId()-
-
Method Detail
-
fromName
static IdGenerationStrategy fromName(String name)
-
fromName
static IdGenerationStrategy fromName(String name, boolean traceId128BitGenerationEnabled)
-
generateTraceId
DDTraceId generateTraceId()
-
generateSpanId
long generateSpanId()
-
-
-
-