Class SamplingResponse


  • public class SamplingResponse
    extends java.lang.Object
    Represents the sampling decision output by the sampler. Used by the SDK to decide whether or not a segment should be emitted.
    • Constructor Detail

      • SamplingResponse

        public SamplingResponse​(boolean sampled,
                                java.lang.String ruleName)
        Parameters:
        sampled - the boolean sampling decision
        ruleName - the name of the rule used to make the sampling decision
      • SamplingResponse

        public SamplingResponse​(java.lang.String ruleName)
      • SamplingResponse

        public SamplingResponse​(boolean sampled)
      • SamplingResponse

        public SamplingResponse()
    • Method Detail

      • isSampled

        public boolean isSampled()
      • getRuleName

        public java.util.Optional<java.lang.String> getRuleName()