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

Fix: serialise breadcrumb message correctly #306

Merged
merged 2 commits into from
May 2, 2018
Merged

Conversation

fractalwrench
Copy link
Contributor

The breadcrumb message should be serialised as part of the metadata, not as the name attribute.

the breadcrumb message should be serialised as part of the metadata, not as the name attribute
@fractalwrench fractalwrench requested a review from a team May 1, 2018 09:26
@fractalwrench
Copy link
Contributor Author

Partially addresses #291

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 75.559% when pulling 268250e on breadcrumb-name-fix into feb5925 on master.

@coveralls
Copy link

coveralls commented May 1, 2018

Coverage Status

Coverage increased (+0.5%) to 76.078% when pulling 3711566 on breadcrumb-name-fix into 31cb452 on master.

assertEquals("Hello World", breadcrumb.getMetadata().get("message"));
}
}
assertEquals(1, count);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the count necessary for this test? And if so, is the for loop the best way to test for it? Would testing the length of the queue be more clear?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The size and order of the breadcrumb queue cannot be guaranteed when calling client#leaveBreadcrumb, as automatic breadcrumbs may occur at any time (around 6-7 tend to be recorded in practice).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, fair enough.

@kattrali kattrali merged commit 8a24ac6 into master May 2, 2018
@kattrali kattrali deleted the breadcrumb-name-fix branch May 2, 2018 01:49
lemnik pushed a commit that referenced this pull request Jun 2, 2021
Add uploadNdkUnityLibraryMappings flag to bugsnag extension
rich-bugsnag added a commit that referenced this pull request Sep 3, 2021
fix(ANR): allow other error classes to be reported
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.

4 participants