OpenTelemetry PHP

RandomIdGenerator
in package
implements IdGeneratorInterface

Table of Contents

Interfaces

IdGeneratorInterface

Constants

SPAN_ID_HEX_LENGTH  = 16
TRACE_ID_HEX_LENGTH  = 32

Methods

generateSpanId()  : string
generateTraceId()  : string
fallbackAlgorithm()  : string
randomHex()  : string

Constants

Methods

fallbackAlgorithm()

private fallbackAlgorithm(int $hexLength) : string
Parameters
$hexLength : int
Return values
string

randomHex()

private randomHex(int $hexLength) : string
Parameters
$hexLength : int
Tags
psalm-suppress

ArgumentTypeCoercion $hexLength is always a positive integer

Return values
string

        
On this page

Search results