Skip to content

Commit 33615f4

Browse files
Default IsEnvironmentUser to false on MAUI (#4606)
* Default IsEnvironmentUser to false on MAUI Resolves #4114 - #4114
1 parent f3e8729 commit 33615f4

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## Unreleased
44

5+
### BREAKING CHANGES
6+
7+
- 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))
58
- Remove unnecessary files from SentryCocoaFramework before packing ([#4602](https://github.com/getsentry/sentry-dotnet/pull/4602))
69

710
## 6.0.0-preview.1

src/Sentry.Maui/SentryMauiOptions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public SentryMauiOptions()
2020
// there for all MAUI targets, we'll set them again here.
2121
AutoSessionTracking = true;
2222
DetectStartupTime = StartupTimeDetectionMode.Fast;
23+
IsEnvironmentUser = false;
2324
#if !PLATFORM_NEUTRAL
2425
CacheDirectoryPath = Microsoft.Maui.Storage.FileSystem.CacheDirectory;
2526
#endif

test/Sentry.Maui.Tests/SentryMauiOptionsTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ public class SentryMauiOptionsTests
99
NetworkStatusListener = FakeReliableNetworkStatusListener.Instance
1010
};
1111

12+
[Fact]
13+
public void IsEnvironmentUser_Default()
14+
{
15+
var options = GetSut();
16+
Assert.False(options.IsEnvironmentUser);
17+
}
18+
1219
[Fact]
1320
public void IncludeTextInBreadcrumbs_Default()
1421
{

0 commit comments

Comments
 (0)