@Override
    protected boolean matchesSafely(Attributes item) {
      return item.asMap().entrySet().stream().anyMatch(
        e -> allOf(hasProperty("key", keyMatcher), hasProperty("value", valueMatcher)).matches(e));
    }
Helper methods for matching against instances of {@link io.opentelemetry.api.common.Attributes}.
hbase-client/src/test/java/org/apache/hadoop/hbase/client/trace/hamcrest/AttributesMatchers.java