In order to control custom grouping for error instances, you can do it by passing it in a callback. This will group error instances together by overriding the automatic grouping. All errors with the same key will be placed in the same error group. The callback accepts an error payload and returns a string. If the callback returns null or a non-string value, the errors will be grouped using Atatus's server side grouping logic.
copy
atatus.setGroupingKeyCallback(function (error) {
// Inspect the error and return a hash derived from the properties you want
return error.message;
});