aws_xray_sdk.core.sampling.rule_cache

Module Contents

TTL
class RuleCache

Bases:object

Cache sampling rules and quota retrieved by TargetPoller and RulePoller. It will not return anything if it expires.

rules
last_updated
get_matched_rule(self, sampling_req, now)
load_rules(self, rules)
load_targets(self, targets_dict)
_load_rules(self, rules)
_load_targets(self, targets_dict)
_is_expired(self, now)