Highlight groups errors together based on their error message and stack trace. When an error is thrown, Highlight finds the closest matching error and adds the new error instance to it.
An error is matched if:
It has the same error message OR
It has the same top stack frame and 3 of the next 4 stack frames are the same (in any order)
A stack frame is matched if:
It has the same filename, function name, line number, and column number OR
It has the same source code and context (if sourcemaps are enabled)
If there is no match with an existing error, a new error is created instead.
All error instances and their relevant sessions can be viewed in the panel at the bottom-right of the errors page:
If your errors are in JSON form, you can add JSONPath expressions in your project settings to select parts of your errors that you want to group on. For example, if your errors look like:
They would not be grouped together since the errors are not an exact match and since they were thrown at different lines in your code. In this case, if you wanted to group all errors of the same type into the same error group, you can add an expression
$.type in your project settings.