ci: migrate to @sentry/nuxt

This commit is contained in:
2024-10-21 21:09:30 +02:00
parent 33a23ef428
commit 3559c2067a
5 changed files with 762 additions and 102 deletions
-3
View File
@@ -15,9 +15,6 @@ import { DefaultApolloClient, provideApolloClient } from '@vue/apollo-composable
import type { Auth0VueClient } from '@auth0/auth0-vue'
import { defineNuxtPlugin, useNuxtApp } from '#app'
import { envConfig } from '~/utils/environment'
// The side effect of patching fetch() has to occur before configuring Apollo Client
// https://github.com/getsentry/sentry-javascript/issues/2860#issuecomment-684514367
import './sentry'
const apiUrl = envConfig(window.location.hostname).apiUrl
const wsUrl = apiUrl.replace(/^http/, 'ws')
-21
View File
@@ -1,21 +0,0 @@
import * as Sentry from '@sentry/browser'
import { defineNuxtPlugin } from '#app'
import { envConfig } from '~/utils/environment'
const env = envConfig(window.location.hostname)
Sentry.init({
enabled: env.sentryEnabled,
dsn: 'https://da2e8d42185a4013909d49955432a116@o365290.ingest.sentry.io/5187660',
integrations: [
Sentry.browserTracingIntegration({ traceFetch: false }),
Sentry.replayIntegration(),
],
environment: env.name,
tracesSampleRate: env.tracesSampleRate,
replaysSessionSampleRate: env.replaysSessionSampleRate,
replaysOnErrorSampleRate: env.replaysOnErrorSampleRate,
})
export default defineNuxtPlugin(() => {
})