Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions platform-includes/enriching-events/set-user/apple.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Sentry

let user = User()
user.email = "[email protected]"
// Start the SDK before setting the user, otherwise it will be ignored.
SentrySDK.setUser(user)
```

Expand All @@ -11,5 +12,6 @@ SentrySDK.setUser(user)

SentryUser *user = [[SentryUser alloc] init];
user.email = @"[email protected]";
// Start the SDK before setting the user, otherwise it will be ignored.
[SentrySDK setUser:user];
```