use of zipkin2.internal.AggregateCall in project zipkin by openzipkin.
the class CassandraSpanConsumerTest method traceByServiceSpan_indexesDurationMinimumZero.
@Test
public void traceByServiceSpan_indexesDurationMinimumZero() {
Span span = spanWithoutAnnotationsOrTags.toBuilder().duration(12L).build();
AggregateCall<?, Void> call = (AggregateCall<?, Void>) consumer.accept(singletonList(span));
assertThat(call.delegate()).filteredOn(c -> c instanceof InsertTraceByServiceSpan).extracting("input.duration").containsOnly(0L);
}
use of zipkin2.internal.AggregateCall in project zipkin by openzipkin.
the class CassandraSpanConsumerTest method traceByServiceSpan_doesntIndexRemoteService.
@Test
public void traceByServiceSpan_doesntIndexRemoteService() {
Span span = spanWithoutAnnotationsOrTags.toBuilder().remoteEndpoint(BACKEND).build();
AggregateCall<?, Void> call = (AggregateCall<?, Void>) consumer.accept(singletonList(span));
assertThat(call.delegate()).filteredOn(c -> c instanceof InsertTraceByServiceSpan).hasSize(2).extracting("input.service").doesNotContain(BACKEND.serviceName());
}
Aggregations