Skip to content

Document SetBeforeSend, SetBeforeSendTransaction, and SetBeforeBreadcrumb in .NET #7455

@rodolfoBee

Description

@rodolfoBee

Core or SDK?

Platform/SDK

Which part? Which one?

.NET Filtering

Description

v3.32.0 of the SDK introduced the following change with zero documentation:

Add Hint support (getsentry/sentry-dotnet#2351)

  • Currently, this allows you to manipulate attachments in the various "before" event delegates.
  • Hints can also be used in event and transaction processors by implementing ISentryEventProcessorWithHint or ISentryTransactionProcessorWithHint, instead of ISentryEventProcessor or ISentryTransactionProcessor.
  • Note: Obsoletes the BeforeSend, BeforeSendTransaction, and BeforeBreadcrumb properties on the SentryOptions class. They have been replaced with SetBeforeSend, SetBeforeSendTransaction, and SetBeforeBreadcrumb respectively. Each one provides overloads both with and without a Hint object.

Suggested Solution

Document the correct usage of hint and the three updated "before" callbacks.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions