ElasticsearchSpanStore implements SpanStore, Traces, ServiceAndSpanNames { @Override public Call<List<String>> getSpanNames(String serviceName) { return aggregatedFieldByServiceName(serviceName, "name"); } ElasticsearchSpanStore(ElasticsearchStorage es); @Override Call<List<List<Span>>> getTraces(QueryRequest request); @Override Call<List<Span>> getTrace(String traceId); @Override Call<List<List<Span>>> getTraces(Iterable<String> traceIds); @Override Call<List<String>> getServiceNames(); @Override Call<List<String>> getRemoteServiceNames(String serviceName); @Override Call<List<String>> getSpanNames(String serviceName); @Override Call<List<DependencyLink>> getDependencies(long endTs, long lookback);  }
@Test void spanNames_defaultsTo24HrsAgo_6x() throws Exception { server.enqueue(AggregatedHttpResponse.of( HttpStatus.OK, MediaType.JSON_UTF_8, TestResponses.SPAN_NAMES)); spanStore.getSpanNames("foo").execute(); requestLimitedTo2DaysOfIndices_singleTypeIndex(); }