Create & visualize output of different grouping strategies
For now, run these scripts in the virtualenv of your local sentry installation.
This requires that you checkout sentry's hierarchical group hashes branch.
Use store_events.py
to write event payloads to disk. For this purpose, use clickhouse-client
to select relevant events and limit the number of results, e.g.
clickhouse-client --query 'SELECT project_id, event_id FROM sentry_local LIMIT 100' \
| python store_events.py --output-dir ./events
Applies a grouping strategy and creates the corresponding report.
If the resulting HTML report will be served via HTTP, make sure that the events
directory is also available, and pass its URL via --events-base-url
.
python create_grouping_report.py \
--events-dir ./events \
--config ./config.json \
--report-dir ./report_$(date) \
--events-base-url http://example.com/events # optional
Example config:
{
"id": "mobile:2021-02-12"
}
The report loads some event data lazily via AJAX. For this to work, you need to serve the report from a web server, e.g.
python3 -m http.server
- Diff anything in node compare (apple crash report, stack trace variants)