-
public interface SpanAwareSamplerA sampler that can provide a per-span sample rate.
This extends the concept of com.datadog.android.core.sampling.Sampler.getSampleRate (no-arg) with a span-aware variant. It is used when the effective sample rate depends on span-level context (e.g., the RUM session sample rate tag for cross-product sampling rebasing).
-
-
Method Summary
Modifier and Type Method Description abstract FloatgetSampleRate(DatadogSpanĀ span)Returns the effective sample rate for the given span. -
-
Method Detail
-
getSampleRate
abstract Float getSampleRate(DatadogSpanĀ span)
Returns the effective sample rate for the given span.
- Parameters:
span- the span for which to compute the sample rate.
-
-
-
-