cicd: add sentry integration

This commit is contained in:
Jean-Baptiste Pasquier 2020-10-08 10:07:00 +02:00
parent d2f2d594d0
commit a356e01026
2 changed files with 9 additions and 0 deletions

7
src/components/sentry.js Normal file
View File

@ -0,0 +1,7 @@
Sentry.init({
dsn: 'https://b4b29557689049a39168599577adb940@sentry.startinblox.com/4',
integrations: [new Sentry.Integrations.BrowserTracing()],
environment: document.location.hostname,
tracesSampleRate: 1.0,
});

View File

@ -1,3 +1,5 @@
script(src="https://browser.sentry-cdn.com/5.24.2/bundle.tracing.min.js" integrity="sha384-Epltozh7S1cJM2hcIRDJBbqiiVpZsNlFCciHxKIAfKN8mSTa+gMivtz7glp/30Mz" crossorigin="anonymous" defer)
script(type="module" src="/components/sentry.js" defer)
script(type="module" src="/components/hubl-search-users.js" defer)
script(type="module" src="/components/hubl-status.js" defer)
script(type="module" src="/components/hubl-reactivity.js" defer)