Skip to content

Unable to override only a few options for replayIntegration #10305

Closed
@joshkel

Description

@joshkel

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/react

SDK Version

7.95.0

Framework Version

React 18.2.0

Link to Sentry event

No response

SDK Setup

initSentry({
  dsn,
  integrations: [
      replayIntegration({
        maskAllText: true,
        blockAllMedia: true,
      }),
  ],
});

Steps to Reproduce

Pass a few options to replayIntegration in a TypeScript file.

Expected Result

Successful compilation - the changelog and migration docs make me think that this should work the same as new Replay({ maskAllText: true, blockAllMedia: true }).

Actual Result

Compilation errors - replayIntegration is declared as needing a nearly complete ReplayPluginOptions object, so it complains if any options are missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: reactIssues related to the Sentry React SDK

    Type

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions