src/sentry/grouping/fingerprinting/configs/README.md
This directory contains all the built-in fingerprinting rules.
configs/
├── {config_name}@{config-version}/
│ ├── 001_{rules_set_name}.txt
│ ├── 002_{rules_set_name}.txt
⋮ ⋮
│ └── 00N_{rules_set_name}.txt
├── {config_name}@{config-version}/
│ ├── 001_{rules_set_name}.txt
│ ├── 002_{rules_set_name}.txt
⋮ ⋮
│ └── 00N_{rules_set_name}.txt
⋮
└── README.md # this file
Rules in each file {config_name}@{config-version}/ are loaded at initialization
time into FINGERPRINTING_BASES["{config_name}@{config-version}"].
The order of rules whithin each of these configs is deterministic, based on lexicographic order of the files (hence numerical prefix is recommended).
Contents of the files should use syntax as described in https://docs.sentry.io/product/data-management-settings/event-grouping/fingerprint-rules/
common for rules that apply to everything;javascript) for platform specific rules;sentry.javascript.nextjs) for SDK specific rules2024-01-11)chunkload_errors).txt suffixTo add one or more of these rule configs
register_strategy_config(
id="newstyle:YYYY-MM-DD",
base="newstyle:YYYY-MM-DD", # Some other existing config
fingerprinting_bases=["foo@YYYY-MM-DD", "bar@YYYY-MM-DD"],
)
Fingerprinting configs will be applied in the order they appear
in the fingerprinting_bases.
Custom fingerprinting defined by user will allways take precedence over built-in rules.