use of brave.http.HttpSampler in project spring-cloud-sleuth by spring-cloud.
the class CompositeHttpSampler method combineUserProvidedSamplerWithSkipPatternSampler.
private HttpSampler combineUserProvidedSamplerWithSkipPatternSampler(SkipPatternProvider provider) {
HttpSampler serverSampler = this.serverSampler;
SleuthHttpSampler skipPatternSampler = new SleuthHttpSampler(provider);
if (serverSampler == null) {
return skipPatternSampler;
}
return new CompositeHttpSampler(skipPatternSampler, serverSampler);
}
Aggregations