-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nuxt
SDK Version
9.19.0
Framework Version
Nuxt 3.17.2
Link to Sentry event
No response
Reproduction Example/SDK Setup
import * as Sentry from '@sentry/nuxt'
const config = useRuntimeConfig()
const env = process.env.NODE_ENV ?? 'development'
if (config.public.sentryDsn) {
Sentry.init({
dsn: config.public.sentryDsn,
environment: env,
sendDefaultPii: true,
integrations: [Sentry.replayIntegration()],
tracesSampleRate: env === 'production' ? 0.1 : 1.0,
replaysSessionSampleRate: env === 'production' ? 0.1 : 1.0,
replaysOnErrorSampleRate: 1.0,
})
}
Steps to Reproduce
- Use @sentry/nuxt 9.19.0 in a Nuxt 3.17.2 project
- Add tracesSampleRate dynamically depending on environment
- Open the site in Firefox
- Observe the browser console
Expected Result
Sentry should correctly respect the tracesSampleRate setting and begin capturing performance traces accordingly.
Actual Result
On Firefox, the following error floods the console:
Uncaught Error: Permission denied to access object
at browserMetrics.ts:458:43
This appears multiple times and only in Firefox.
Metadata
Metadata
Assignees
Projects
Status
Waiting for: Product Owner