code: public static boolean isFailureEvent(GobblinTrackingEvent event) {
      String eventType = event.getMetadata().get(EVENT_TYPE);
      return StringUtils.isNotEmpty(eventType) && eventType.equals(FAILURE_EVENT_TYPE);
    }
docs: Check if the given {@link GobblinTrackingEvent} is a failure event