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();
}
Aggregations