Group errors based on messages and ignoring stacktrace

Is there a way that I can group errors in sentry based on messages instead of stacktrace by using server side fingerprinting or custom grouping enhancements?

Like

  1. error: divided by zero -> stacktrace1
  2. error: array index out of bounds -> stacktrace1

Normally in sentry these 2 errors are grouped under same issue, but i want to group them differently based on the error message and ignore the stacktrace.

This is possible (as a beta-level feature) in Sentry 10. You may try the beta or wait a few more weeks for the final release.