Skip to content

Commit

Permalink
feat(inbound-filters): Relax pattern for matching ChunkLoadError(s) (g…
Browse files Browse the repository at this point in the history
  • Loading branch information
iambriccardo authored Dec 19, 2023
1 parent eac44da commit c85a5c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/sentry/relay/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,10 @@ def get_filter_settings(project: Project) -> Mapping[str, Any]:
if project.get_option("filters:chunk-load-error") == "1":
# ChunkLoadError: Loading chunk 3662 failed.\n(error:
# https://xxx.com/_next/static/chunks/29107295-0151559bd23117ba.js)
error_messages += ["ChunkLoadError: Loading chunk *"]
error_messages += [
"ChunkLoadError: Loading chunk *",
"Uncaught *: ChunkLoadError: Loading chunk *",
]

if error_messages:
filter_settings["errorMessages"] = {"patterns": error_messages}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
created: '2023-10-31T14:18:43.516229Z'
created: '2023-12-19T08:38:08.254426Z'
creator: sentry
source: tests/sentry/relay/test_config.py
---
Expand Down Expand Up @@ -84,6 +84,7 @@ config:
patterns:
- '*https://reactjs.org/docs/error-decoder.html?invariant={418,419,422,423,425}*'
- 'ChunkLoadError: Loading chunk *'
- 'Uncaught *: ChunkLoadError: Loading chunk *'
ignoreTransactions:
isEnabled: true
patterns:
Expand Down

0 comments on commit c85a5c0

Please sign in to comment.