@Override
      protected Attributes featureValueOf(SpanData actual) {
        return actual.getEvents().stream()
          .filter(e -> Objects.equals(HBaseSemanticAttributes.EXCEPTION_EVENT_NAME, e.getName()))
          .map(EventData::getAttributes).findFirst().orElse(null);
      }
Helper methods for matching against instances of {@link SpanData}.
hbase-client/src/test/java/org/apache/hadoop/hbase/client/trace/hamcrest/SpanDataMatchers.java