Sampler - DataDog/dd-sdk-android GitHub Wiki

interface Sampler

Interface representing the sampling.

Inheritors

RateBasedSampler

Functions

getSampleRate

@FloatRange(from = 0.0, to = 100.0)

abstract fun getSampleRate(): Float?

Return

the sample rate if applicable, as a float between 0 and 100, or null if not applicable

sample

abstract fun sample(): Boolean

Sampling method.

Return

true if you want to keep the value, false otherwise.