use of com.uber.jaeger.samplers.ConstSampler in project jaeger-client-java by jaegertracing.
the class RemoteReporterTest method setUp.
@Before
public void setUp() throws Exception {
metricsFactory = new InMemoryMetricsFactory();
metrics = new Metrics(metricsFactory);
sender = new InMemorySender();
reporter = new RemoteReporter.Builder().withSender(sender).withFlushInterval(flushInterval).withMaxQueueSize(maxQueueSize).withMetrics(metrics).build();
tracer = new Tracer.Builder("test-remote-reporter", reporter, new ConstSampler(true)).withMetrics(metrics).build();
}
use of com.uber.jaeger.samplers.ConstSampler in project jaeger-client-java by jaegertracing.
the class EndToEndBehaviorResourceTest method setUp.
@Before
public void setUp() throws Exception {
reporter = new InMemoryReporter();
Tracer tracer = new com.uber.jaeger.Tracer.Builder("crossdock-java", reporter, new ConstSampler(true)).build();
Map<String, Tracer> tracers = new HashMap<>();
tracers.put("const", tracer);
resource = new EndToEndBehaviorResource(new EndToEndBehavior(tracers));
}
use of com.uber.jaeger.samplers.ConstSampler in project jaeger-client-java by jaegertracing.
the class JerseyServerFilterTest method configure.
@Override
protected Application configure() {
reporter = new InMemoryReporter();
Tracer tracer = new Tracer.Builder("world service", reporter, new ConstSampler(true)).build();
ResourceConfig resourceConfig = new ResourceConfig(HelloResource.class, StormlordResource.class);
TracingUtils.setTracer(tracer);
undertest = new JerseyServerFilter(tracer, TracingUtils.getTraceContext());
resourceConfig.register(undertest);
return resourceConfig;
}
Aggregations