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

MaxBreadcrumbs = 0 doesn't work #1110

Closed
lucas-zimerman opened this issue Jul 7, 2021 · 0 comments · Fixed by #1145
Closed

MaxBreadcrumbs = 0 doesn't work #1110

lucas-zimerman opened this issue Jul 7, 2021 · 0 comments · Fixed by #1145
Labels
Bug Something isn't working

Comments

@lucas-zimerman
Copy link
Collaborator

Environment

How do you use Sentry?
Sentry SaaS (sentry.io)

Which SDK and version?
latest

Steps to Reproduce

Set MaxBreadcrumbs = 0, add a breadcrumb and then check the breadcrumb count;

Expected Result

Count = 0

Actual Result

using System;
using Sentry;

using (SentrySdk.Init(o => { o.Dsn = "https://eb18e953812b41c3aeb042e666fd3b5c@o447951.ingest.sentry.io/5428537"; o.MaxBreadcrumbs = 0; }))
{
    SentrySdk.AddBreadcrumb("");
    SentrySdk.ConfigureScope(scope =>
    {
        if (scope.Breadcrumbs.Count != 0)
        {
            SentrySdk.CaptureException(new Exception("Got one breadcrumb"));
        }
    });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants