The local sampler used to make sampling decisions when the decisions are absent in the incoming requests
and the default sampler needs to fall back on local rules. It will also be the primary sampler
if the default sampler is disabled.
Methods
(inner) setLocalRules()
Set local rules for making sampling decisions.
(inner) shouldSample(sampleRequest)
Makes a sample decision based on the sample request.
Parameters:
Name | Type | Description |
---|---|---|
sampleRequest |
object | Contains information for rules matching. |