Skip to content

Document ASP.NET Core 10.0 breaking change: Exception diagnostics suppression #47900

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Aug 8, 2025

This PR documents the breaking change announced in aspnet/Announcements#524 for ASP.NET Core 10.0 Preview 7.

Changes Made

New breaking change documentation: Added docs/core/compatibility/aspnet-core/10.0/exception-handler-diagnostics-suppressed.md which documents that exception diagnostics are now suppressed by default when IExceptionHandler.TryHandleAsync returns true.

Updated table of contents: Modified docs/core/compatibility/toc.yml to include the new ASP.NET Core section for .NET 10, properly positioned in the document hierarchy.

Breaking Change Summary

Starting in .NET 10 Preview 7, the ASP.NET Core exception handler middleware no longer records diagnostics (logging, EventSource events, and metrics) for exceptions that are handled by IExceptionHandler implementations. This addresses user feedback that the previous behavior was undesirable - users reported that their exception was handled, but telemetry still recorded it as an error.

The documentation includes:

  • Clear description of the behavioral change
  • Version information (.NET 10 Preview 7)
  • Previous vs. new behavior explanation
  • Reason for the change
  • Recommended migration action using ExceptionHandlerOptions.SuppressDiagnosticsCallback
  • Affected APIs with proper cross-references

The documentation follows the established format and style guidelines used throughout the compatibility documentation, includes proper API cross-references, and passes markdownlint validation.

Fixes #47623.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.


Internal previews

📄 File 🔗 Preview link
docs/core/compatibility/10.0.md Breaking changes in .NET 10
docs/core/compatibility/aspnet-core/10/exception-handler-diagnostics-suppressed.md Exception diagnostics are suppressed when IExceptionHandler.TryHandleAsync returns true
docs/core/compatibility/toc.yml docs/core/compatibility/toc

@Copilot Copilot AI changed the title [WIP] Document https://github.com/aspnet/Announcements/issues/524 Document ASP.NET Core 10.0 breaking change: Exception diagnostics suppression Aug 8, 2025
Copilot finished work on behalf of gewarren August 8, 2025 18:24
@Copilot Copilot AI requested a review from gewarren August 8, 2025 18:24
@gewarren gewarren marked this pull request as ready for review August 8, 2025 21:59
@gewarren gewarren requested a review from a team as a code owner August 8, 2025 21:59
@gewarren gewarren requested review from BrennanConroy, a team and JamesNK and removed request for BrennanConroy August 8, 2025 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document https://github.com/aspnet/Announcements/issues/524
2 participants