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
Change default behavior to stop tracing 404s and other low-value responses unless explicitly enabled #4740
Change the default for SentryOptions.TraceIgnoreStatusCodes from an empty collection to:
[301, (305, 399), (401, 404)]
This matches sentry-ruby's default. It is the SDK spec's recommended value minus 302/303, which ASP.NET MVC, Razor Pages and minimal APIs use to redirect after a successful form POST (see the framework disclaimer added in getsentry/sentry-docs#19658).
With that default, the SDK stops tracing incoming requests that end in an infrastructure redirect (e.g. HTTPS redirection, rewrite rules) or in a 401–404 response. Those transactions are rarely useful for debugging, are often triggered by scanning bots, and use up span quota.
Default matches sentry-ruby
Breaking change noted in release notes + migration path documented
changed the title [-]Change default behavior to stop tracing redirects and 401-404 responses unless explicitly enabled[/-][+]Change default behavior to stop tracing 404s and other low-value responses unless explicitly enabled[/+]on Sep 28, 2026
Activity
linear commentedon Nov 15, 2025
NET-530
[-]Change default behavior to stop tracing 404s unless explicitly enabled[/-][+]Change default behavior to stop tracing redirects and 401-404 responses unless explicitly enabled[/+][-]Change default behavior to stop tracing redirects and 401-404 responses unless explicitly enabled[/-][+]Change default behavior to stop tracing 404s and other low-value responses unless explicitly enabled[/+]