TL;DR: I have a Golang application that, using gin-gonics package, renders a very simple HTML . Once launched in local, accessing to http://localhost:8080/login (the URL is an example), it will show the html page, with its divs, buttons, etc. The html content is retrieved from a “.tpl” file. Problem is that such html page must include a javascript script, that
Tag: sentry
How to globally ignore errors with sentry v5 to reduce noise
With the deprecated client Raven you could ignore troublesome errors : The only way I found with the new client is with the before-send hook : https://docs.sentry.io/error-reporting/configuration/filtering/?platform=browser#before-send I searched all over the docs but didn’t find a global way to ignore errors. Answer There seems to be an ignoreErrors config option. It’s documented in their example app here: https://github.com/getsentry/sentry-javascript/blob/ab7ba810a97a2acae3dbd2c82b07e3972147bb97/packages/browser/examples/app.js#L38