@Test void getIsTraced_v2() throws Exception {
    assertThat(getServices("v2").body().string()).isEqualTo("[]");

    List<List<Span>> traces = awaitSpans(2);

    assertQueryReturnsResults(QueryRequest.newBuilder()
      .annotationQuery(Map.of("http.path", "/api/v2/services")), traces);

    assertQueryReturnsResults(QueryRequest.newBuilder().spanName("get-service-names"), traces);
  }
This class is flaky for as yet unknown reasons. For example, in CI, sometimes assertions fail
due to incomplete traces. Hence, it includes more assertion customization than normal.
zipkin-server/src/test/java/zipkin2/server/internal/brave/ITZipkinSelfTracing.java