public static <T> Matcher<Attributes> containsEntry(Matcher<AttributeKey<? super T>> keyMatcher,
    Matcher<? super T> valueMatcher) {
    return new IsAttributesContaining<>(keyMatcher, valueMatcher);
  }
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