Search in sources :

Example 1 with InMemoryStorage

use of zipkin2.storage.InMemoryStorage in project zipkin by openzipkin.

the class ITZipkinSelfTracing method assertQueryReturnsResults.

void assertQueryReturnsResults(QueryRequest.Builder builder, List<List<Span>> traces) throws IOException {
    QueryRequest query = builder.endTs(System.currentTimeMillis()).lookback(DAY).limit(2).build();
    assertThat(inMemoryStorage().getTraces(query).execute()).withFailMessage("Expected results from %s. Current traces: %s", query, traces).isNotEmpty();
}
Also used : QueryRequest(zipkin2.storage.QueryRequest)

Aggregations

QueryRequest (zipkin2.storage.QueryRequest)1