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
{{ message }}
Repository navigation
Support status code ranges when configuring TraceIgnoreStatusCodes from appsettings.json #5644
TraceIgnoreStatusCodes can be set from configuration, but only as a list of individual status codes: BindableSentryOptions.TraceIgnoreStatusCodes is a List<int>. Configuration can't express a range, and "TraceIgnoreStatusCodes": [ "305-399" ] throws an InvalidOperationException at startup.
This matters more in 7.0, where the default becomes [301, (305, 399), (401, 404)] (#5632). Configuration replaces the default rather than adding to it, so keeping the default and ignoring one more code from appsettings.json means listing around 100 integers.
Proposal
Change the bindable property to a List<string> and parse each entry in ApplyTo as either a single code ("404") or an inclusive range ("305-399"). JSON numbers bind to string without problems, so existing configs like [ 404, 429 ] keep working.
Activity
linear-code commentedon Sep 29, 2026
NET-831
docs(dotnet): Document TraceIgnoreStatusCodes (#19898)