@Test
  public void testTryRegionServerReport() {
    final Matcher<SpanData> tryRegionServerReportMatcher =
      allOf(hasName("HRegionServer.tryRegionServerReport"), hasParentSpanId(NO_PARENT_ID),
        hasStatusWithCode(isOneOf(StatusCode.OK, StatusCode.ERROR)));
    assertThat("there should be a span for the region server sending a report.", spans,
      hasItem(tryRegionServerReportMatcher));
    final SpanData tryRegionServerReportSpan = spans.stream()
      .filter(tryRegionServerReportMatcher::matches).findAny().orElseThrow(AssertionError::new);
    assertThat(
      "the region server report span should have an invocation of the RegionServerReport RPC.",
      spans, hasItem(allOf(hasName(endsWith("RegionServerStatusService/RegionServerReport")),
        hasParentSpanId(tryRegionServerReportSpan))));
  }
Wait for the underlying cluster to come up -- defined by meta being available.
hbase-server/src/test/java/org/apache/hadoop/hbase/TestServerInternalsTracing.java