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