use of com.amazonaws.services.xray.model.SamplingRuleRecord in project aws-xray-sdk-java by aws.
the class RulePoller method pollRule.
private void pollRule() {
Instant now = clock.instant();
logger.info("Polling sampling rules.");
GetSamplingRulesRequest req = new GetSamplingRulesRequest();
GetSamplingRulesResult records = client.getSamplingRules(req);
List<SamplingRule> rules = records.getSamplingRuleRecords().stream().map(SamplingRuleRecord::getSamplingRule).filter(CentralizedRule::isValid).collect(Collectors.toList());
manifest.putRules(rules, now);
}
Aggregations