Skip to content

@sentry/nextjs: Multiple browserTracingIntegration instances are not supported. #16369

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
mrmckeb opened this issue May 23, 2025 · 1 comment
Open
3 tasks done

Comments

@mrmckeb
Copy link

mrmckeb commented May 23, 2025

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nextjs

SDK Version

9.22.0

Framework Version

next: ^15.3.2 / react: ^19.1.0

Link to Sentry event

No response

Reproduction Example/SDK Setup

// instrumentation-client.ts
import {
  browserTracingIntegration,
  featureFlagsIntegration,
  init,
  replayIntegration,
} from "@sentry/nextjs";

init({
  integrations: [
    browserTracingIntegration(),
    featureFlagsIntegration(),
    replayIntegration({
      blockAllMedia: true,
      maskAllInputs: true,
      maskAllText: true,
    }),
  ],

  tracesSampleRate: 0.01,

  replaysOnErrorSampleRate: 1.0,

  replaysSessionSampleRate: 0,
}

Steps to Reproduce

We have Turbopack on for development only. We do have instrumentation.ts for Edge & Server.

Expected Result

Should not see the browserTracingIntegration warning logged to the browser console.

Actual Result

The warning is logged in production:

Multiple browserTracingIntegration instances are not supported.

@chargome
Copy link
Member

Hey @mrmckeb, thanks for reaching out!

You don't need to add the browserTracingIntegration() in your integrations array, just set a sample rate and you should be good 👍 (you can check the example in our docs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants