Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leave autotomatic breadcrumbs when enabledBreadcrumbTypes is null #1466

Merged
merged 2 commits into from
Jul 12, 2021

Conversation

imjoehaines
Copy link
Contributor

@imjoehaines imjoehaines commented Jul 8, 2021

Goal

The intended behaviour of enabledBreadcrumbTypes is for breadcrumbs to be left when it is null. This allows notifiers to avoid creating a set of breadcrumb types when it is not necessary

The latest Android release changed enabledBreadcrumbTypes to null by default for performance reasons and uncovered this bug via the RN tests

Note that this PR doesn't fix the problem alone as some parts of the code do not handle the case where enabledBreadcrumbTypes is null and so will crash when notify is called. This will be fixed in #1467

Testing

Covered by existing tests and new unit tests for the null case. This cannot be manually tested yet as notify fails when enabledBreadcrumbTypes is null

The intended behaviour of enabledBreadcrumbTypes is for breadcrumbs
to be left when it is null. This allows notifiers to avoid creating
a set of breadcrumb types when it is not necessary

The latest Android release changed enabledBreadcrumbTypes to null
by default for performance reasons and uncovered this bug via the
RN tests
@imjoehaines imjoehaines requested a review from kattrali July 8, 2021 14:35
@github-actions
Copy link

github-actions bot commented Jul 8, 2021

@bugsnag/browser bundle size diff

Minified Minfied + Gzipped
Before 41.31 kB 12.71 kB
After 41.31 kB 12.72 kB
± -1 bytes ⚠️ +8 bytes

code coverage diff

Coverage values did not change👌.

Total:

Lines Branches Functions Statements
82.27%(+0%) 71.48%(+0%) 83.47%(+0%) 81.21%(+0.01%)

Generated by 🚫 dangerJS against bd6cce3

@imjoehaines imjoehaines merged commit 7ce9059 into next Jul 12, 2021
@imjoehaines imjoehaines deleted the fix-auto-breadcrumbs-when-null branch July 12, 2021 14:34
@djskinner djskinner mentioned this pull request Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants