Skip to content

[iOS] Inconsistent event enrichment mechanism #3854

@TimBurik

Description

@TimBurik

Package

Sentry

.NET Flavor

.NET

.NET Version

9.0.100

OS

iOS

SDK Version

4.13.0

Self-Hosted Sentry Version

No response

Steps to Reproduce

  1. Initialize Sentry, enable BeforeSend
  2. Add enrichment logic to the BeforeSend callback
  3. Generate different types of events

We are trying to use BeforeSend feature as a unified mechanism of enrichment of Sentry events with additional context at the moment when these events occur. As an example, we are trying to add additional property UserId and also add an attachment as if it is a part of a large log file.

SentryPlayground.Issues.EventEnrichment.iOS.zip

Expected Result

All events are going through the process of enrichment and has additional context attached to them

Actual Result

Only managed exceptions are going through the process of enrichment and have both additional property and additional file attachment in report. Native crashes don't have either, and don't seem to go through the BeforeSend callback at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions