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
DROP
RECORD_AND_SAMPLE
RECORD_ONLY
Methods
isRecording()
Check if this decision indicates recording.
public
isRecording() : bool
Return values
boolisSampled()
Check if this decision indicates sampling (export).
public
isSampled() : bool