-
-
Notifications
You must be signed in to change notification settings - Fork 216
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
Java.Lang.IllegalArgumentException when setting MaxBreadcrumbs to 0 #3255
Comments
Is there any other way to disable breadcrumbs completely? What I also tried:
|
Hi @tipa , You could use the SetBeforeBreadcrumb callback. Returning null from that callback will discard the breadcrumb. btw: I raised this with the sentry-java team as I think the issue you raised with |
Thanks. I thought of that workaround as well. But this would still come with the overhead at runtime of the Sentry SDK setting up all the integrations & handlers. At the moment, I don't see a way to specifically disable the NetworkBreadcrumbsIntegration in the .NET SDK. |
If it's just that setting you're after, this exists in the NativeOptions on the .NET SDK as well. |
But does that disable all breadcrumbs? |
Oddly enough, there seem to be a couple of options missing. I.e. the networking one and specifically for your ask: There is a |
May as well do that in the same PR eh? |
Package
Sentry
.NET Flavor
.NET
.NET Version
8.0.2
OS
Android
SDK Version
4.2.1
Self-Hosted Sentry Version
No response
Steps to Reproduce
According to the docs:
Expected Result
no crash and collection of breadcrumbs is disabled
Actual Result
The text was updated successfully, but these errors were encountered: