Package 

Class SpanSamplingRules.Rule

    • Method Summary

      Modifier and Type Method Description
      String getService() Gets the glob pattern the span service must match to validate the rule.
      String getName() Gets the glob pattern the span name must match to validate the rule.
      String getResource() Gets the glob pattern the span resource must match to validate the rule.
      Map<String, String> getTags() Gets the collection of all (tag name, glob pattern) pairs that span tags must match to validatethe rules.
      double getSampleRate() Gets the probability of keeping (sampling) the element matching the rule.
      int getMaxPerSecond() Gets the limit applied to the rule, using a token bucket limiter.
      static SpanSamplingRules.Rule create(SpanSamplingRules.JsonRuleĀ jsonRule) Validate and create a Rule from its JsonRule representation.
      String asStringJsonRule()
      • Methods inherited from class com.datadog.trace.api.sampling.SamplingRule

        normalizeGlob
      • Methods inherited from class java.lang.Object

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

      • getService

         String getService()

        Gets the glob pattern the span service must match to validate the rule.

      • getName

         String getName()

        Gets the glob pattern the span name must match to validate the rule.

      • getResource

         String getResource()

        Gets the glob pattern the span resource must match to validate the rule.

      • getTags

         Map<String, String> getTags()

        Gets the collection of all (tag name, glob pattern) pairs that span tags must match to validatethe rules. If the collection is empty, the rule will be validated. If the collection hasentries, each key must exactly match a span tag name, and its associated glob pattern mustmatch the span tag value.

      • getSampleRate

         double getSampleRate()

        Gets the probability of keeping (sampling) the element matching the rule.

      • getMaxPerSecond

         int getMaxPerSecond()

        Gets the limit applied to the rule, using a token bucket limiter.

      • create

         static SpanSamplingRules.Rule create(SpanSamplingRules.JsonRuleĀ jsonRule)

        Validate and create a Rule from its JsonRule representation.

        Parameters:
        jsonRule - The JsonRule to validate.