Skip to content

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

Description

@mrmckeb

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions