Skip to content

Commit 8e777c9

Browse files
authored
[react] don't group different backends into the same issue (#1301)
1 parent b28c501 commit 8e777c9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

react/src/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ const tracingOrigins = [
5252

5353
const history = createBrowserHistory();
5454

55-
const PREFERRED_BACKENDS = ['flask', 'laravel', 'flask-otlp'];
56-
5755
let BACKEND_URL;
5856
let BACKEND_TYPE;
5957
let FRONTEND_SLOWDOWN;
@@ -143,11 +141,13 @@ Sentry.init({
143141
// SE Testing
144142
event.fingerprint = ['{{ default }}', seFingerprint];
145143
}
144+
} else {
145+
event.fingerprint = ['{{ default }}'];
146146
}
147147

148-
if ((PREFERRED_BACKENDS.includes(BACKEND_TYPE)) && is5xxError && (se && se.startsWith('prod-tda-'))) {
149-
// Seer when run automatically will use the latest event. We want it to run on event with flask backend instead of taking chances.
150-
event.fingerprint.push('tda-flagship-react-preferred-backends');
148+
if (is5xxError) {
149+
// don't group different backends into the same issue to avoid mismatch between Seer autofix and latest event.
150+
event.fingerprint.push(BACKEND_TYPE);
151151
}
152152

153153
if (event.exception) {

0 commit comments

Comments
 (0)