Skip to content

Commit 9a5c3e0

Browse files
authored
test(logs): add Assertion for sentry.origin for MAUI (#4701)
1 parent d3d2f71 commit 9a5c3e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/Sentry.Maui.Tests/Internal/SentryMauiStructuredLoggerProviderTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ public void CreateLogger_DependencyInjection_CanLog()
9191

9292
capturedLog.TryGetAttribute("sentry.sdk.version", out object? version).Should().BeTrue();
9393
version.Should().Be(Sentry.Maui.Internal.Constants.SdkVersion);
94+
95+
capturedLog.TryGetAttribute("sentry.origin", out object? origin).Should().BeTrue();
96+
origin.Should().Be("auto.log.extensions_logging");
9497
}
9598

9699
[Fact]

0 commit comments

Comments
 (0)