Search in sources :

Example 1 with DefaultBaggageRestrictionManager

use of com.uber.jaeger.baggage.DefaultBaggageRestrictionManager in project jaeger-client-java by jaegertracing.

the class SpanTest method setUp.

@Before
public void setUp() {
    metricsFactory = new InMemoryMetricsFactory();
    reporter = new InMemoryReporter();
    clock = mock(Clock.class);
    metrics = new Metrics(metricsFactory);
    tracer = new Tracer.Builder("SamplerTest", reporter, new ConstSampler(true)).withMetrics(metrics).withClock(clock).withBaggageRestrictionManager(new DefaultBaggageRestrictionManager()).withExpandExceptionLogs().build();
    span = (Span) tracer.buildSpan("some-operation").start();
}
Also used : InMemoryReporter(com.uber.jaeger.reporters.InMemoryReporter) InMemoryMetricsFactory(com.uber.jaeger.metrics.InMemoryMetricsFactory) Metrics(com.uber.jaeger.metrics.Metrics) ConstSampler(com.uber.jaeger.samplers.ConstSampler) Clock(com.uber.jaeger.utils.Clock) DefaultBaggageRestrictionManager(com.uber.jaeger.baggage.DefaultBaggageRestrictionManager) Before(org.junit.Before)

Aggregations

DefaultBaggageRestrictionManager (com.uber.jaeger.baggage.DefaultBaggageRestrictionManager)1 InMemoryMetricsFactory (com.uber.jaeger.metrics.InMemoryMetricsFactory)1 Metrics (com.uber.jaeger.metrics.Metrics)1 InMemoryReporter (com.uber.jaeger.reporters.InMemoryReporter)1 ConstSampler (com.uber.jaeger.samplers.ConstSampler)1 Clock (com.uber.jaeger.utils.Clock)1 Before (org.junit.Before)1