Skip to content

Commit 7072975

Browse files
Update release-notes/10.0/preview/preview7/aspnetcore.md
Co-authored-by: Martin Costello <[email protected]>
1 parent 1cc7569 commit 7072975

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

release-notes/10.0/preview/preview7/aspnetcore.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ASP.NET Core updates in .NET 10:
1919

2020
A new configuration option has been added to the [ASP.NET Core exception handler middleware](https://learn.microsoft.com/aspnet/core/fundamentals/error-handling#exception-handler-page) to control diagnostic output: `ExceptionHandlerOptions.SuppressDiagnosticsCallback`. This callback is passed context about the request and exception, allowing you to add logic that determines whether the middleware should write exception logs and other telemetry.
2121

22-
This setting is useful when you know an exception is transient, or has been handled by the exception handler middleware, and don't want to error logs written to your observability platform.
22+
This setting is useful when you know an exception is transient, or has been handled by the exception handler middleware, and don't want the error logs written to your observability platform.
2323

2424
Additionally, the middleware's default behavior has changed: it no longer writes exception diagnostics for exceptions handled by `IExceptionHandler`. Based on user feedback, logging handled exceptions at the error level was often undesirable when `IExceptionHandler.TryHandleAsync` returned `true`.
2525

0 commit comments

Comments
 (0)