Skip to content

MaxBreadcrumbSize to 0 crashes Android on Start #3634

@lucas-zimerman

Description

@lucas-zimerman

🔴 Waiting for

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

SDK:

  • @sentry/react-native (>= 1.0.0)
  • react-native-sentry (<= 0.43.2)

SDK version: 0.0.0

react-native version: 0.0.0

Are you using Expo?

  • Yes
  • No

Are you using sentry.io or on-premise?

  • sentry.io (SaaS)
  • on-premise

If you are using sentry.io, please post a link to your issue so we can take a look:

[Link to issue]

Configuration:

(@sentry/react-native)

Sentry.init({
  // Replace the example DSN below with your own DSN:
  dsn: SENTRY_INTERNAL_DSN,
  debug: true,
  environment: 'dev',
  maxBreadcrumbs: 0,
 ...
});

I have the following issue:

If you set maxBreadcrumbs: 0, the app will crash when opened. it's not mentioned that the size 0 will not work on the docs but if I recall it worked on other SDK that I worked in the past.

Steps to reproduce:

  • Step 1
  • maxBreadcrumbs: 0 on SentryOptions
  • Step 2
  • Open the app

Actual result:

image

Expected result:

The app to not crash and have events without breadcrumbs.

Metadata

Metadata

Labels

No labels
No labels

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions