Default grouping
When you do not configure custom rules, Sentry applies a built-in grouping strategy. The active strategy is controlled by the project’s grouping configuration. The current default isnewstyle:2026-01-20; older projects may still use newstyle:2023-01-11 and can upgrade in project settings.
The default strategy inspects the event in this priority order:
- Chained exceptions — processes each exception in the chain using the single-exception strategy
- Threads — groups by the crashing thread’s stack trace
- Stacktrace — groups by the exception type and the significant frames
- Template — for template-engine errors, groups by template path and line
- CSP / security reports — groups by report type and blocked URI
- Message — groups by the normalized error message when no stack trace is available
Custom fingerprinting rules
You can override the default grouping by providing fingerprint rules in Project Settings → Issue Grouping → Fingerprint Rules. Rules use a matcher syntax:->:
- Matchers — conditions on the event (error type, stack frame, message, URL, tag, etc.)
- Fingerprint — the resulting fingerprint strings; can include variables like
{{ default }}or{{ error.type }}
{{ default }} in the fingerprint keeps Sentry’s automatic grouping for the matched dimension while adding your custom suffix.
Matcher types
| Matcher | Example |
|---|---|
error.type | error.type:ValueError |
error.value | error.value:*timeout* |
stack.function | stack.function:process_payment |
stack.module | stack.module:com.example.db.* |
stack.filename | stack.filename:*/payments/* |
message | message:"NullPointerException*" |
url | url:*/checkout* |
tags.key | tags.environment:staging |
*) are supported in matcher values.
Server-side fingerprinting
Fingerprint rules set in the Sentry UI are applied server-side after the event arrives. This means:- You do not need to redeploy your application to change grouping.
- Rules apply retroactively to new events, but existing issues are not re-grouped.
- Rules are evaluated in order; the first matching rule wins.
SDK-level fingerprinting
You can also set a fingerprint directly in the SDK before the event is sent:Grouping strategies
Sentry ships two named grouping configurations:| Config ID | Description |
|---|---|
newstyle:2026-01-20 | Current default. Improved exception subcomponent ordering, better parameterization, and stricter unknown-variable handling. |
newstyle:2023-01-11 | Legacy config. Applies JS single-frame URL normalization and other compatibility shims for older projects. |
newstyle:2026-01-20). Existing projects can upgrade in Project Settings → Issue Grouping → Grouping Config.
Merging and unmerging issues
When you know two issues represent the same bug but were grouped separately, you can merge them:Merge
Click Merge in the bulk action toolbar. All events from the secondary issues are moved into the primary issue.