Module: RuleCache

The rule cache that stores sampling rules fetched from X-Ray service.
Source:

Methods

(inner) getMatchedRule(sampleRequest, now)

Tries to find a valid rule that matches the sample request.
Parameters:
Name Type Description
sampleRequest object Contains information for rules matching.
now number Current epoch in seconds.
Source:

(inner) loadRules(rules)

Load rules fetched from X-Ray service in order sorted by priorities.
Parameters:
Name Type Description
rules object Newly fetched rules to load.
Source:

(inner) loadTargets(targetsMapping)

Load targets fetched from X-Ray service.
Parameters:
Name Type Description
targetsMapping object Newly fetched targets map with rule name as key.
Source: