Package 

Class ApmNetworkInstrumentationExtKt

    • Method Summary

      Modifier and Type Method Description
      final static Float effectiveSampleRate(Sampler<DatadogSpan> $self, DatadogSpan span) Returns the effective sample rate for the given span.
      final static Boolean isDropped(DatadogSpanContext $self) Returns true if this context's sampling priority is a dropped trace (SAMPLER_DROP or USER_DROP).
      final static Boolean isDroppedPriority(Integer $self) Returns true if this sampling priority value is a dropped trace (SAMPLER_DROP or USER_DROP).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • effectiveSampleRate

         final static Float effectiveSampleRate(Sampler<DatadogSpan> $self, DatadogSpan span)

        Returns the effective sample rate for the given span. If the sampler implements SpanAwareSampler, the per-span rate is returned. Otherwise, the sampler's static rate is returned.

      • isDropped

         final static Boolean isDropped(DatadogSpanContext $self)

        Returns true if this context's sampling priority is a dropped trace (SAMPLER_DROP or USER_DROP). @InternalApi so DatadogInterceptor can share this; revert to internal once DatadogInterceptor is removed.

      • isDroppedPriority

         final static Boolean isDroppedPriority(Integer $self)

        Returns true if this sampling priority value is a dropped trace (SAMPLER_DROP or USER_DROP). @InternalApi so DatadogInterceptor can share this; revert to internal once DatadogInterceptor is removed.