Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
2d8cd224
Commit
2d8cd224
authored
Apr 04, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try to declutter sentry
parent
1d6236ad
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
86 additions
and
0 deletions
+86
-0
nextjs.ts
configs/sentry/nextjs.ts
+43
-0
react.ts
configs/sentry/react.ts
+43
-0
No files found.
configs/sentry/nextjs.ts
View file @
2d8cd224
...
...
@@ -7,6 +7,49 @@ const config: NextjsOptions = {
// We recommend adjusting this value in production, or using tracesSampler
// for finer control
tracesSampleRate
:
1.0
,
// error filtering settings
// were taken from here - https://docs.sentry.io/platforms/node/guides/azure-functions/configuration/filtering/#decluttering-sentry
ignoreErrors
:
[
// Random plugins/extensions
'
top.GLOBALS
'
,
// See: http://blog.errorception.com/2012/03/tale-of-unfindable-js-error.html
'
originalCreateNotification
'
,
'
canvas.contentDocument
'
,
'
MyApp_RemoveAllHighlights
'
,
'
http://tt.epicplay.com
'
,
'
Can
\'
t find variable: ZiteReader
'
,
'
jigsaw is not defined
'
,
'
ComboSearch is not defined
'
,
'
http://loading.retry.widdit.com/
'
,
'
atomicFindClose
'
,
// Facebook borked
'
fb_xd_fragment
'
,
// ISP "optimizing" proxy - `Cache-Control: no-transform` seems to reduce this. (thanks @acdha)
// See http://stackoverflow.com/questions/4113268/how-to-stop-javascript-injection-from-vodafone-proxy
'
bmi_SafeAddOnload
'
,
'
EBCallBackMessageReceived
'
,
// See http://toolbar.conduit.com/Developer/HtmlAndGadget/Methods/JSInjection.aspx
'
conduitPage
'
,
// Generic error code from errors outside the security sandbox
'
Script error.
'
,
],
denyUrls
:
[
// Facebook flakiness
/graph
\.
facebook
\.
com/i
,
// Facebook blocked
/connect
\.
facebook
\.
net
\/
en_US
\/
all
\.
js/i
,
// Woopra flakiness
/eatdifferent
\.
com
\.
woopra-ns
\.
com/i
,
/static
\.
woopra
\.
com
\/
js
\/
woopra
\.
js/i
,
// Chrome extensions
/extensions
\/
/i
,
/^chrome:
\/\/
/i
,
// Other plugins
/127
\.
0
\.
0
\.
1:4001
\/
isrunning/i
,
// Cacaoweb
/webappstoolbarba
\.
texthelp
\.
com
\/
/i
,
/metrics
\.
itunes
\.
apple
\.
com
\.
edgesuite
\.
net
\/
/i
,
],
};
export
default
config
;
configs/sentry/react.ts
View file @
2d8cd224
...
...
@@ -9,6 +9,49 @@ export const config: Sentry.BrowserOptions = {
// We recommend adjusting this value in production, or using tracesSampler
// for finer control
tracesSampleRate
:
1.0
,
// error filtering settings
// were taken from here - https://docs.sentry.io/platforms/node/guides/azure-functions/configuration/filtering/#decluttering-sentry
ignoreErrors
:
[
// Random plugins/extensions
'
top.GLOBALS
'
,
// See: http://blog.errorception.com/2012/03/tale-of-unfindable-js-error.html
'
originalCreateNotification
'
,
'
canvas.contentDocument
'
,
'
MyApp_RemoveAllHighlights
'
,
'
http://tt.epicplay.com
'
,
'
Can
\'
t find variable: ZiteReader
'
,
'
jigsaw is not defined
'
,
'
ComboSearch is not defined
'
,
'
http://loading.retry.widdit.com/
'
,
'
atomicFindClose
'
,
// Facebook borked
'
fb_xd_fragment
'
,
// ISP "optimizing" proxy - `Cache-Control: no-transform` seems to reduce this. (thanks @acdha)
// See http://stackoverflow.com/questions/4113268/how-to-stop-javascript-injection-from-vodafone-proxy
'
bmi_SafeAddOnload
'
,
'
EBCallBackMessageReceived
'
,
// See http://toolbar.conduit.com/Developer/HtmlAndGadget/Methods/JSInjection.aspx
'
conduitPage
'
,
// Generic error code from errors outside the security sandbox
'
Script error.
'
,
],
denyUrls
:
[
// Facebook flakiness
/graph
\.
facebook
\.
com/i
,
// Facebook blocked
/connect
\.
facebook
\.
net
\/
en_US
\/
all
\.
js/i
,
// Woopra flakiness
/eatdifferent
\.
com
\.
woopra-ns
\.
com/i
,
/static
\.
woopra
\.
com
\/
js
\/
woopra
\.
js/i
,
// Chrome extensions
/extensions
\/
/i
,
/^chrome:
\/\/
/i
,
// Other plugins
/127
\.
0
\.
0
\.
1:4001
\/
isrunning/i
,
// Cacaoweb
/webappstoolbarba
\.
texthelp
\.
com
\/
/i
,
/metrics
\.
itunes
\.
apple
\.
com
\.
edgesuite
\.
net
\/
/i
,
],
};
export
function
configureScope
(
scope
:
Sentry
.
Scope
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment