@Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DiagnosticsExceptionEvent that = (DiagnosticsExceptionEvent) o;
    return timestamp == that.timestamp && Objects.equals(exceptionType, that.exceptionType) && Objects.equals(
        exceptionMessage, that.exceptionMessage) && Objects.equals(compactExceptionStackTrace,
        that.compactExceptionStackTrace) && Objects.equals(mdcMap, that.mdcMap);
  }
This class encapsulates information related to an exception event that is useful for diagnostics.
samza-core/src/main/scala/org/apache/samza/diagnostics/DiagnosticsExceptionEvent.java