public static Matcher<SpanData> buildConnectionAttributesMatcher(AsyncConnectionImpl conn) {
    return hasAttributes(
      allOf(containsEntry("db.system", "hbase"), containsEntry("db.connection_string", "nothing"),
        containsEntry("db.user", conn.getUser().toString())));
  }
All {@link Span}s involving {@code conn} should include these attributes.
hbase-client/src/test/java/org/apache/hadoop/hbase/client/trace/hamcrest/TraceTestUtil.java