Skip to content

Commit fae6eb7

Browse files
committed
fix(core): Add Google gmo error to Inbound Filters (#15432)
closes #15389
1 parent 4be2191 commit fae6eb7

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

packages/core/src/integrations/inboundfilters.ts

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const DEFAULT_IGNORE_ERRORS = [
1313
/^Javascript error: Script error\.? on line 0$/,
1414
/^ResizeObserver loop completed with undelivered notifications.$/, // The browser logs this when a ResizeObserver handler takes a bit longer. Usually this is not an actual issue though. It indicates slowness.
1515
/^Cannot redefine property: googletag$/, // This is thrown when google tag manager is used in combination with an ad blocker
16+
/^Can't find variable: gmo$/, // Error from Google Search App https://issuetracker.google.com/issues/396043331
1617
"undefined is not an object (evaluating 'a.L')", // Random error that happens but not actionable or noticeable to end-users.
1718
'can\'t redefine non-configurable property "solana"', // Probably a browser extension or custom browser (Brave) throwing this error
1819
"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)", // Error thrown by GTM, seemingly not affecting end-users

packages/core/test/lib/integrations/inboundfilters.test.ts

+11
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,12 @@ const GOOGLETAG_EVENT: Event = {
269269
},
270270
};
271271

272+
const GOOGLE_APP_GMO: Event = {
273+
exception: {
274+
values: [{ type: 'ReferenceError', value: "Can't find variable: gmo" }],
275+
},
276+
};
277+
272278
const CEFSHARP_EVENT: Event = {
273279
exception: {
274280
values: [
@@ -408,6 +414,11 @@ describe('InboundFilters', () => {
408414
expect(eventProcessor(GOOGLETAG_EVENT, {})).toBe(null);
409415
});
410416

417+
it('uses default filters (Google App "gmo")', () => {
418+
const eventProcessor = createInboundFiltersEventProcessor();
419+
expect(eventProcessor(GOOGLE_APP_GMO, {})).toBe(null);
420+
});
421+
411422
it('uses default filters (CEFSharp)', () => {
412423
const eventProcessor = createInboundFiltersEventProcessor();
413424
expect(eventProcessor(CEFSHARP_EVENT, {})).toBe(null);

0 commit comments

Comments
 (0)