From c8db6c21263d36a5a014e041213882d8af09a885 Mon Sep 17 00:00:00 2001 From: James Crosswell Date: Tue, 30 Apr 2024 10:45:26 +1200 Subject: [PATCH] Updated examples for setting and clearing the scope.User (#9860) --- platform-includes/enriching-events/set-user/dotnet.mdx | 4 ++-- platform-includes/enriching-events/unset-user/dotnet.mdx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/platform-includes/enriching-events/set-user/dotnet.mdx b/platform-includes/enriching-events/set-user/dotnet.mdx index fa1fcb9d52e32..4623d8acc4aa7 100644 --- a/platform-includes/enriching-events/set-user/dotnet.mdx +++ b/platform-includes/enriching-events/set-user/dotnet.mdx @@ -3,7 +3,7 @@ using Sentry; SentrySdk.ConfigureScope(scope => { - scope.User = new User + scope.User = new SentryUser { Email = "john.doe@example.com" }; @@ -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") ) ``` diff --git a/platform-includes/enriching-events/unset-user/dotnet.mdx b/platform-includes/enriching-events/unset-user/dotnet.mdx index 115672403fa17..cb6d3ba38fe7f 100644 --- a/platform-includes/enriching-events/unset-user/dotnet.mdx +++ b/platform-includes/enriching-events/unset-user/dotnet.mdx @@ -3,7 +3,7 @@ using Sentry; SentrySdk.ConfigureScope(scope => { - scope.User = null; + scope.User = new SentryUser(); }); ``` @@ -12,6 +12,6 @@ open Sentry SentrySdk.ConfigureScope( fun scope -> - scope.User <- null + scope.User <- SentryUser() ) ```