In most cases, cancellation events are intentionally programmed events but are often handled by throwing a System.OperationCanceledException
to interrupt the entire pipeline. As these are non-errors, it'd be nice to have in-built support for opting out of logging these.
System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
Module "Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.Internal.SocketAwaitable", in GetResult
Module "Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.Internal.SocketConnection", in ProcessReceives
Module "System.Runtime.ExceptionServices.ExceptionDispatchInfo", in Throw
Module "System.Runtime.CompilerServices.TaskAwaiter", in HandleNonSuccessAndDebuggerNotification
Module "Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.Internal.SocketConnection", in DoReceive
Microsoft.AspNetCore.Connections.ConnectionResetException: An existing connection was forcibly closed by the remote host
Module "System.Runtime.ExceptionServices.ExceptionDispatchInfo", in Throw
Module "System.IO.Pipelines.PipeCompletion", in ThrowLatchedException
Module "System.IO.Pipelines.Pipe", in GetReadResult
Module "System.IO.Pipelines.Pipe", in ReadAsync
Module "System.IO.Pipelines.Pipe+DefaultPipeReader", in ReadAsync
Module "Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Http1MessageBody", in PumpAsync
Module "System.Runtime.ExceptionServices.ExceptionDispatchInfo", in Throw
Module "System.IO.Pipelines.PipeCompletion", in ThrowLatchedException
Module "System.IO.Pipelines.Pipe", in GetReadResult
Module "System.IO.Pipelines.Pipe", in ReadAsync
Module "System.IO.Pipelines.Pipe+DefaultPipeReader", in ReadAsync
Module "Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.MessageBody", in ReadAsync
Module "System.Runtime.ExceptionServices.ExceptionDispatchInfo", in Throw
Module "System.Runtime.CompilerServices.TaskAwaiter", in HandleNonSuccessAndDebuggerNotification
Module "Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpRequestStream", in ReadAsyncInternal
Module "System.Runtime.ExceptionServices.ExceptionDispatchInfo", in Throw
Module "System.Runtime.CompilerServices.TaskAwaiter", in HandleNonSuccessAndDebuggerNotification
Module "Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream", in ReadAsync
Module "System.Runtime.ExceptionServices.ExceptionDispatchInfo", in Throw
Module "System.Runtime.CompilerServices.TaskAwaiter", in HandleNonSuccessAndDebuggerNotification
Module "System.IO.StreamReader", in ReadBufferAsync
Module "System.Runtime.ExceptionServices.ExceptionDispatchInfo", in Throw
Module "System.Runtime.CompilerServices.TaskAwaiter", in HandleNonSuccessAndDebuggerNotification
Module "System.IO.StreamReader", in ReadAsyncInternal
Module "System.Runtime.ExceptionServices.ExceptionDispatchInfo", in Throw
Module "System.Runtime.CompilerServices.TaskAwaiter", in HandleNonSuccessAndDebuggerNotification
Module "Microsoft.AspNetCore.WebUtilities.FormReader", in BufferAsync
Module "System.Runtime.ExceptionServices.ExceptionDispatchInfo", in Throw
Module "System.Runtime.CompilerServices.TaskAwaiter", in HandleNonSuccessAndDebuggerNotification
Module "Microsoft.AspNetCore.WebUtilities.FormReader", in ReadNextPairAsyncImpl
Module "System.Runtime.ExceptionServices.ExceptionDispatchInfo", in Throw
Module "System.Runtime.CompilerServices.TaskAwaiter", in HandleNonSuccessAndDebuggerNotification
Module "Microsoft.AspNetCore.WebUtilities.FormReader", in ReadFormAsync
Module "System.Runtime.ExceptionServices.ExceptionDispatchInfo", in Throw
Module "System.Runtime.CompilerServices.TaskAwaiter", in HandleNonSuccessAndDebuggerNotification
Module "Microsoft.AspNetCore.Http.Features.FormFeature", in InnerReadFormAsync
Module "System.Runtime.ExceptionServices.ExceptionDispatchInfo", in Throw
Module "System.Runtime.CompilerServices.TaskAwaiter", in HandleNonSuccessAndDebuggerNotification
Module "Microsoft.AspNetCore.Http.Features.FormFeature", in ReadForm
Module "Sentry.AspNetCore.FormRequestPayloadExtractor", in DoExtractPayLoad
Module "Sentry.AspNetCore.BaseRequestPayloadExtractor", in ExtractPayload
Module "Sentry.AspNetCore.ScopeExtensions", in SetBody
Module "Sentry.AspNetCore.ScopeExtensions", in Populate
Module "Sentry.AspNetCore.SentryMiddleware", in PopulateScope
Module "Sentry.Scope", in Evaluate
It might be worth considering an opt-out filter for these too, since they are mostly non-errors.