RandomIdGenerator
in package
implements
IdGeneratorInterface
Table of Contents
Interfaces
Constants
- SPAN_ID_HEX_LENGTH = 16
- TRACE_ID_HEX_LENGTH = 32
Methods
- generateSpanId() : string
- generateTraceId() : string
- fallbackAlgorithm() : string
- randomHex() : string
Constants
SPAN_ID_HEX_LENGTH
private
mixed
SPAN_ID_HEX_LENGTH
= 16
TRACE_ID_HEX_LENGTH
private
mixed
TRACE_ID_HEX_LENGTH
= 32
Methods
generateSpanId()
public
generateSpanId() : string
Return values
stringgenerateTraceId()
public
generateTraceId() : string
Return values
stringfallbackAlgorithm()
private
fallbackAlgorithm(int $hexLength) : string
Parameters
- $hexLength : int
Return values
stringrandomHex()
private
randomHex(int $hexLength) : string
Parameters
- $hexLength : int