-
public interface SamplingRuleThis interface describes the criteria for a sampling rule.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceSamplingRule.TraceSamplingRuleThis interface describes the criteria of a sampling rule that can match against a trace.
public interfaceSamplingRule.SpanSamplingRuleThis interface describes the criteria of a sampling rule that can match against a span.
-
Method Summary
Modifier and Type Method Description static StringnormalizeGlob(String name)abstract StringgetService()Gets the glob pattern the span service must match to validate the rule. abstract StringgetName()Gets the glob pattern the span name must match to validate the rule. abstract StringgetResource()Gets the glob pattern the span resource must match to validate the rule. abstract Map<String, String>getTags()Gets the collection of all (tag name, glob pattern) pairs that span tags must match to validatethe rules. abstract doublegetSampleRate()Gets the probability of keeping (sampling) the element matching the rule. -
-
Method Detail
-
normalizeGlob
static String normalizeGlob(String name)
-
getService
abstract String getService()
Gets the glob pattern the span service must match to validate the rule.
-
getName
abstract String getName()
Gets the glob pattern the span name must match to validate the rule.
-
getResource
abstract String getResource()
Gets the glob pattern the span resource must match to validate the rule.
-
getTags
abstract 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
abstract double getSampleRate()
Gets the probability of keeping (sampling) the element matching the rule.
-
-
-
-