You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This variable controls the total amount of breadcrumbs that should be captured. This defaults to 100
You can set as much as you want, the default is 100, but it can be customized, the problem is that if you set too much, your event may be dropped because the payload is too big since sentry has a max payload size of 1MB
I think the combination of the docs + the text in the SDK (especially in JS) is what makes this confusing. To remove some of the confusion, we can make the docs content a bit more robust. Something like:
This variable controls the total amount of breadcrumbs that should be captured. The default is 100, but you can set this to any number. However, you should be aware that Sentry has a maximum payload size of 1MB and any events exceeding that payload size will be dropped.
In the JS SDK text, the part "values over 100 will be ignored" makes it sound like even if you update the maxBreadcrumbs value, that value will be ignored, not that breadcrumbs beyond 100 will be ignored. This text should probably be updated. But in the meantime, I'll update the docs.
In the JS SDK text, the part "values over 100 will be ignored" makes it sound like even if you update the maxBreadcrumbs value, that value will be ignored,
Yes, exactly. That is true.
If that behavior is overridden in RN, I'd think they could just make a type where that property has a different description, no, @marandaneto?
In the JS SDK text, the part "values over 100 will be ignored" makes it sound like even if you update the maxBreadcrumbs value, that value will be ignored,
Yes, exactly. That is true.
If that behavior is overridden in RN, I'd think they could just make a type where that property has a different description, no, @marandaneto?
No, it should use the JS behavior then, but I was unaware of this absolute number, See getsentry/sentry-javascript#4682 (comment)
The Mobile SDKs tho, don't have such an absolute number, so even more confusing, I'm currently asking around how this feature was designed and which SDKs should adapt to it.
Activity
getsentry-release commentedon Dec 15, 2021
Routing to @getsentry/team-mobile for triage. ⏲️
marandaneto commentedon Mar 3, 2022
@imatwawana Can you help us out with the wording here?
https://docs.sentry.io/platforms/react-native/configuration/options/#max-breadcrumbs
You can set as much as you want, the default is 100, but it can be customized, the problem is that if you set too much, your event may be dropped because the payload is too big since sentry has a max payload size of 1MB
It's clear enough for me tho.
On the JS SDK, we have this: https://github.com/getsentry/sentry-javascript/blob/38278210118576d041117e11e2bd6507677625f6/packages/types/src/options.ts#L78-L82
But it's just explaining if the default is used, which is 100.
imatwawana commentedon Mar 3, 2022
I think the combination of the docs + the text in the SDK (especially in JS) is what makes this confusing. To remove some of the confusion, we can make the docs content a bit more robust. Something like:
This variable controls the total amount of breadcrumbs that should be captured. The default is 100, but you can set this to any number. However, you should be aware that Sentry has a maximum payload size of 1MB and any events exceeding that payload size will be dropped.
In the JS SDK text, the part "values over 100 will be ignored" makes it sound like even if you update the maxBreadcrumbs value, that value will be ignored, not that breadcrumbs beyond 100 will be ignored. This text should probably be updated. But in the meantime, I'll update the docs.
lobsterkatie commentedon Mar 4, 2022
Yes, exactly. That is true.
If that behavior is overridden in RN, I'd think they could just make a type where that property has a different description, no, @marandaneto?
marandaneto commentedon Mar 4, 2022
No, it should use the JS behavior then, but I was unaware of this absolute number, See getsentry/sentry-javascript#4682 (comment)
The Mobile SDKs tho, don't have such an absolute number, so even more confusing, I'm currently asking around how this feature was designed and which SDKs should adapt to it.
marandaneto commentedon Mar 8, 2022
We've decided to fix it on the JS SDK first and later adjust the docs.
Thanks for raising the confusion @liamjones