diff --git a/CHANGELOG.md b/CHANGELOG.md index bf9d652035..6a6cbf410b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## Unreleased +### BREAKING CHANGES + +- SentryOptions.IsEnvironmentUser now defaults to false on MAUI. The means the User.Name will no longer be set, by default, to the name of the device ([#4606](https://github.com/getsentry/sentry-dotnet/pull/4606)) - Remove unnecessary files from SentryCocoaFramework before packing ([#4602](https://github.com/getsentry/sentry-dotnet/pull/4602)) ## 6.0.0-preview.1 diff --git a/src/Sentry.Maui/SentryMauiOptions.cs b/src/Sentry.Maui/SentryMauiOptions.cs index c27109bebc..17038bf747 100644 --- a/src/Sentry.Maui/SentryMauiOptions.cs +++ b/src/Sentry.Maui/SentryMauiOptions.cs @@ -20,6 +20,7 @@ public SentryMauiOptions() // there for all MAUI targets, we'll set them again here. AutoSessionTracking = true; DetectStartupTime = StartupTimeDetectionMode.Fast; + IsEnvironmentUser = false; #if !PLATFORM_NEUTRAL CacheDirectoryPath = Microsoft.Maui.Storage.FileSystem.CacheDirectory; #endif diff --git a/test/Sentry.Maui.Tests/SentryMauiOptionsTests.cs b/test/Sentry.Maui.Tests/SentryMauiOptionsTests.cs index e1eb1dd564..1d2a9ae9ed 100644 --- a/test/Sentry.Maui.Tests/SentryMauiOptionsTests.cs +++ b/test/Sentry.Maui.Tests/SentryMauiOptionsTests.cs @@ -9,6 +9,13 @@ public class SentryMauiOptionsTests NetworkStatusListener = FakeReliableNetworkStatusListener.Instance }; + [Fact] + public void IsEnvironmentUser_Default() + { + var options = GetSut(); + Assert.False(options.IsEnvironmentUser); + } + [Fact] public void IncludeTextInBreadcrumbs_Default() {