Skip to content

ignoreModulesExclude examples? #619

@bneigher

Description

@bneigher

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • [x ] iOS
  • Android

Output of node -v && npm -v && npm ls --prod --depth=0

v11.9.0
6.7.0

Config:

Sentry.config("https://.......@sentry.io/.....", {
    logLevel: SentryLog.Error,
    ignoreModulesExclude: [
      "aws-sdk",
      "aws-amplify",
      "@aws-amplify/pushnotification"
    ]
  }).install();

I have following issue:

Not a bug, more of a callout to missing documentation. I am not clear what the contents of ignoreModulesExclude should be, the docs only give examples of I18nManager or RNSentry which is great but is this from node_modules? Where can I find the names of valid "modules".

Using the require or import name doesn't seem to work as shown above.

Steps to reproduce:

  • Use aws-sdk in react-native
  • Attempt to log in without a config

Actual result:

  • Errors are being sent to Sentry from aws-sdk

Expected result:

  • Errors are NOT sent to Sentry from aws-sdk

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions