Skip to content

SDK sends INP spans if enabled: false #14082

Closed
@Lms24

Description

@Lms24

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/browser

SDK Version

8.35.0

Framework Version

plain JS

Link to Sentry event

No response

Reproduction Example/SDK Setup

Sentry.init({
  dsn: "https://33f3f99d7064495b95ccacfb9225bbbf@o447951.ingest.us.sentry.io/4504689757257728",
  integrations: [
    Sentry.browserTracingIntegration(),
    Sentry.replayIntegration({
      blockAllMedia: false,
    }),
  ],
  enabled: false,
  environment: "desktop",
  tracesSampleRate: 1.0,
  tracePropagationTargets: ["localhost"],
  replaysSessionSampleRate: 0,
  replaysOnErrorSampleRate: 1,
});

Steps to Reproduce

  1. Copy this init script into a JS project
  2. Open page, open dev tools
  3. perform an interaction
  4. go to another tab
  5. observe outgoing fetch request to Sentry with INP span envelope

Expected Result

Nothing at all is sent to Sentry if enabled: false is set.

Actual Result

INP span envelope is sent to Sentry despite enabled: false

Metadata

Metadata

Assignees

Labels

Package: browserIssues related to the Sentry Browser SDK

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions