Search in sources :

Example 6 with InMemoryStorage

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();
}
Also used : InMemoryStorage(zipkin.storage.InMemoryStorage) Test(org.junit.Test)

Aggregations

InMemoryStorage (zipkin.storage.InMemoryStorage)6 DependencyLink (zipkin.DependencyLink)4 Test (org.junit.Test)2 CheckResult (zipkin.Component.CheckResult)1