use of zipkin.storage.InMemoryStorage in project zipkin by openzipkin.
the class CollectorTest method unsampledSpansArentStored.
@Test
public void unsampledSpansArentStored() {
collector = Collector.builder(Collector.class).sampler(CollectorSampler.create(0f)).storage(new InMemoryStorage()).build();
collector.accept(asList(span(Long.MIN_VALUE)), NOOP);
assertThat(collector.storage.spanStore().getServiceNames()).isEmpty();
}
Aggregations