Skip to content

Commit 637f6fd

Browse files
committed
sentry: Also bucket API error events via the route and method.
See discussion at zulip#4063 for motivation.
1 parent 2d67eef commit 637f6fd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/sentry/apiEventIntegration.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@ const apiEventIntegration: Integration = {
2525
if (!event.fingerprint) {
2626
event.fingerprint = ['{{ default }}'];
2727
}
28-
event.fingerprint.push(exception.code, exception.httpStatus.toString());
28+
event.fingerprint.push(
29+
exception.call.route,
30+
exception.call.method,
31+
exception.code,
32+
exception.httpStatus.toString(),
33+
);
2934

3035
// These are for humans, not for computers.
3136
if (!event.extra) {

0 commit comments

Comments
 (0)