Skip to content

Commit

Permalink
Updated examples for setting and clearing the scope.User (#9860)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescrosswell committed Apr 29, 2024
1 parent dd9ceae commit c8db6c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions platform-includes/enriching-events/set-user/dotnet.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ using Sentry;

SentrySdk.ConfigureScope(scope =>
{
scope.User = new User
scope.User = new SentryUser
{
Email = "john.doe@example.com"
};
Expand All @@ -15,6 +15,6 @@ open Sentry
SentrySdk.ConfigureScope(
fun scope ->
scope.User <- User(Email = "john.doe@example.com")
scope.User <- SentryUser(Email = "john.doe@example.com")
)
```
4 changes: 2 additions & 2 deletions platform-includes/enriching-events/unset-user/dotnet.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ using Sentry;

SentrySdk.ConfigureScope(scope =>
{
scope.User = null;
scope.User = new SentryUser();
});
```

Expand All @@ -12,6 +12,6 @@ open Sentry
SentrySdk.ConfigureScope(
fun scope ->
scope.User <- null
scope.User <- SentryUser()
)
```

0 comments on commit c8db6c2

Please sign in to comment.