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

Add new config option: maxPersistedEvents #936

Merged
merged 1 commit into from
Dec 16, 2020
Merged

Conversation

kstenerud
Copy link
Contributor

Goal

To harmonize configuration options, we need a maxPersistedEvents config option

Design

Add maxPersistedEvents to the configuration object

Testing

Updated unit tests to also verify maxPersistedEvents.

We can't test interrupted network connectivity, so I did some manual testing where I set the max to 2, generated 5 errors with airplane mode on, and then verified that only the last 2 events were kept and sent.

Bugsnag/Configuration/BSGConfigurationBuilder.m Outdated Show resolved Hide resolved
Bugsnag/Helpers/BugsnagKeys.h Outdated Show resolved Hide resolved
Bugsnag/Helpers/BugsnagKeys.m Outdated Show resolved Hide resolved
…many unsent events will be kept before deleting the oldest.
@kstenerud kstenerud merged commit eeb4453 into next Dec 16, 2020
@kstenerud kstenerud deleted the 5111-maxPersistedEvents branch December 16, 2020 10:15
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.

3 participants