use of com.navercorp.pinpoint.web.vo.SpanHint in project pinpoint by naver.
the class SpanQueryBuilderTest method spanFilter.
@Test
public void spanFilter() {
SpanHint spanHint = new SpanHint(COLLECTOR_ACCEPTOR_TIME, RESPONSE_TIME, "appName");
SpanQueryBuilder builder = new SpanQueryBuilder();
Predicate<SpanBo> filter = builder.newSpanFilter(txId, spanHint);
SpanBo span = new SpanBo();
span.setTransactionId(txId);
span.setCollectorAcceptTime(100);
span.setElapsed(200);
span.setApplicationId("appName");
Assert.assertTrue(filter.test(span));
}
Aggregations