use of com.uber.jaeger.samplers.HttpSamplingManager in project jaeger-client-java by jaegertracing.
the class EndToEndBehavior method getRemoteTracer.
private Tracer getRemoteTracer(Metrics metrics, Reporter reporter, String serviceName, String samplingHostPort) {
Sampler initialSampler = new ProbabilisticSampler(1.0);
HttpSamplingManager manager = new HttpSamplingManager(samplingHostPort);
RemoteControlledSampler remoteSampler = new RemoteControlledSampler(serviceName, manager, initialSampler, metrics, 5000);
com.uber.jaeger.Tracer.Builder remoteTracerBuilder = new com.uber.jaeger.Tracer.Builder(serviceName, reporter, remoteSampler);
return remoteTracerBuilder.build();
}
Aggregations