cea536691f
Bumps [@sentry/browser](https://github.com/getsentry/sentry-javascript) from 7.99.0 to 7.100.0. - [Release notes](https://github.com/getsentry/sentry-javascript/releases) - [Changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-javascript/compare/7.99.0...7.100.0)
22 lines
654 B
TypeScript
22 lines
654 B
TypeScript
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(() => {
|
|
})
|