Module: LocalSampler

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.
Source:

Methods

(inner) setLocalRules()

Set local rules for making sampling decisions.
Source:

(inner) shouldSample(sampleRequest)

Makes a sample decision based on the sample request.
Parameters:
Name Type Description
sampleRequest object Contains information for rules matching.
Source: