Flow PHP

SamplingDecision : string

Sampling decision made by a Sampler.

DROP: The span should not be recorded and will not be exported. isRecording() returns false.

RECORD_ONLY: The span should be recorded but not exported. Useful for local debugging or custom processing. isRecording() returns true, but the SAMPLED flag is not set.

RECORD_AND_SAMPLE: The span should be recorded and exported. isRecording() returns true and SAMPLED flag is set.

Cases

DROP  = 'drop'
RECORD_AND_SAMPLE  = 'record_and_sample'
RECORD_ONLY  = 'record_only'

Methods

isRecording()  : bool
Check if this decision indicates recording.
isSampled()  : bool
Check if this decision indicates sampling (export).

Cases

Methods

isRecording()

Check if this decision indicates recording.

public isRecording() : bool
Return values
bool

isSampled()

Check if this decision indicates sampling (export).

public isSampled() : bool
Return values
bool

        
On this page

Search results