Skip to content

Improve failsafe exception retrying & large breadcrumb support#147

Merged
UberMouse merged 7 commits intomasterfrom
tl/improve-failsafe-exception-retrying
Feb 20, 2019
Merged

Improve failsafe exception retrying & large breadcrumb support#147
UberMouse merged 7 commits intomasterfrom
tl/improve-failsafe-exception-retrying

Conversation

@UberMouse
Copy link
Contributor

@UberMouse UberMouse commented Feb 20, 2019

When sending an exception causes an exception, clear the breadcrumbs store before trying to send the failure exception. This is partially because sending a giant exception payload causes an exception which could be caused by breadcrumbs (this is mitigated with the second change however) and because something in the breadcrumbs could be causing the problem.

The primary mitigation to the error that occurs during sending a very large payload is to only send the most recent breadcrumbs up to a size limit of 100KB which should address this problem without having to lose all the breadcrumbs.


This change is Reviewable

This calculates a rough size of the Breadcrumb, message length + 100.
Assuming all the other fields roughly come out to 100 characters on
average. The primary failing of this is that the metadata could be much
larger, but calculating the size of the metadata could be costly.

This handles the usecase needed by Vydia
@UberMouse UberMouse merged commit c929380 into master Feb 20, 2019
@UberMouse UberMouse deleted the tl/improve-failsafe-exception-retrying branch February 20, 2019 21:01
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.

1 participant