Package 

Interface SpanAwareSampler


  • 
    public interface SpanAwareSampler
    
                        

    A 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 Float getSampleRate(DatadogSpanĀ span) Returns the effective sample rate for the given span.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.