@Test
  public void testHRegionServerStartup() {
    final Matcher<SpanData> regionServerStartupMatcher = allOf(hasName("HRegionServer.startup"),
      hasParentSpanId(NO_PARENT_ID), hasStatusWithCode(isOneOf(StatusCode.OK, StatusCode.ERROR)));
    assertThat("there should be a span from the HRegionServer startup procedure.", spans,
      hasItem(regionServerStartupMatcher));
    final SpanData regionServerStartupSpan = spans.stream()
      .filter(regionServerStartupMatcher::matches).findAny().orElseThrow(AssertionError::new);
    assertThat("the HRegionServer startup procedure span should show zookeeper interaction.", spans,
      hasItem(allOf(hasName(startsWith("RecoverableZookeeper.")),
        hasParentSpanId(regionServerStartupSpan))));
  }
Wait for the underlying cluster to come up -- defined by meta being available.
hbase-server/src/test/java/org/apache/hadoop/hbase/TestServerInternalsTracing.java