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

[PLAT-7126] Stop dropping breadcrumbs with invalid metadata #1187

Merged
merged 2 commits into from
Sep 16, 2021

Conversation

nickdowell
Copy link
Contributor

Goal

Stop dropping breadcrumbs when invalid metadata is provided by the app / developer.

Changeset

Documentation for leaveBreadcrumbWithMessage:metadata:andType: has been added to clarify that metadata should contain only valid JSON (i.e. convertible by NSJSONSerialization.)

Breadcrumb metadata is now converted to valid JSON if required by replacing invalid objects with their descriptions, and an explicit warning is logged.

Testing

Amended existing unit tests to verify this change in behaviour.

@github-actions
Copy link

Infer: No issues found 🎉

OCLint: No issues found 🎉

Bugsnag.framework binary size did not change - 1,156,600 bytes

Generated by 🚫 Danger

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