bugsnag-cocoa icon indicating copy to clipboard operation
bugsnag-cocoa copied to clipboard

Delete oldest breadcrumbs when over 1 MB limit

Open sethfri opened this issue 4 years ago • 3 comments

Description

Currently, Bugsnag throws away errors when the payload breaches the 1 MB limit, typically due to too many breadcrumbs added.

Describe the solution you'd like

Bugsnag has a similar limit for the number of breadcrumbs, a max of 100. When you breach the 100 limit, my understanding is that the oldest breadcrumbs are thrown away, rather than the entire error being rejected. It would be nice if we could do the same thing here, throwing away the oldest breadcrumbs until the payload is under the 1 MB limit rather than losing the entire error

Describe alternatives you've considered None

sethfri avatar Dec 15 '20 08:12 sethfri

Hi @sethfri,

This is something we are aware of and are looking at possible solutions. We hope to begin work on this soon.

johnkiely1 avatar Dec 15 '20 10:12 johnkiely1

Hi, any update on this? It was noted that work would begin soon, but it's been 8 months since then. Thanks!

sethfri avatar Aug 26 '21 07:08 sethfri

Hey @sethfri, no updates to report at present. It's on our roadmap, but there have been some other priorities blocking this. Will post back on this thread with any updates as and when they become available. 😊

xljones avatar Aug 27 '21 15:08 xljones

As of v6.22.0 Bugsnag throws away the oldest breadcrumbs until the payload is under the 1 MB limit, to prevent payloads being lost :tada:

We also increased the default and maximum values for maxBreadcrumbs to 100 and 500, respectively.

nickdowell avatar Sep 15 '22 08:09 nickdowell