Skip to content

Filtering exceptions in BeforeSend is not obvious for AggregateExceptions #3751

Open
getsentry/sentry-docs
#14265
@georgiosd

Description

@georgiosd

Package

Sentry

.NET Flavor

.NET

.NET Version

6.0.0

OS

Windows

SDK Version

3.34.0

Self-Hosted Sentry Version

No response

Steps to Reproduce

  1. Override OnBeforeSend to return null when event has exception of type SomeException.
  2. Throw SomeException from a Task.Run func.

Expected Result

Sentry filters out the exception.

Actual Result

Sentry still sends the exception "home".

Metadata

Metadata

Type

Projects

Status

No status

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions