Skip to content

Commit aadfd87

Browse files
committed
change sentry.origin category and clarify name
1 parent 2ae44b5 commit aadfd87

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/Sentry.Extensions.Logging/SentryStructuredLogger.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Except
8989
};
9090

9191
log.SetDefaultAttributes(_options, _sdk);
92-
log.SetOrigin("auto.logging.dotnet_extension");
92+
log.SetOrigin("auto.log.microsoft_extension");
9393

9494
if (_categoryName is not null)
9595
{

src/Sentry.Serilog/SentrySink.Structured.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ private static void CaptureStructuredLog(IHub hub, SentryOptions options, LogEve
1818
};
1919

2020
log.SetDefaultAttributes(options, Sdk);
21-
log.SetOrigin("auto.logging.serilog");
21+
log.SetOrigin("auto.log.serilog");
2222

2323
foreach (var attribute in attributes)
2424
{

test/Sentry.AspNetCore.Tests/SentryAspNetCoreStructuredLoggerProviderTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public void CreateLogger_DependencyInjection_CanLog()
9393
version.Should().Be(SentryMiddleware.NameAndVersion.Version);
9494

9595
capturedLog.TryGetAttribute("sentry.origin", out object? origin).Should().BeTrue();
96-
origin.Should().Be("auto.logging.dotnet_extension");
96+
origin.Should().Be("auto.log.microsoft_extension");
9797
}
9898

9999
[Fact]

test/Sentry.Extensions.Logging.Tests/SentryStructuredLoggerProviderTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public void CreateLogger_DependencyInjection_CanLog()
9393
version.Should().Be(SentryLoggerProvider.NameAndVersion.Version);
9494

9595
capturedLog.TryGetAttribute("sentry.origin", out object? origin).Should().BeTrue();
96-
origin.Should().Be("auto.logging.dotnet_extension");
96+
origin.Should().Be("auto.log.microsoft_extension");
9797
}
9898

9999
[Fact]

test/Sentry.Extensions.Logging.Tests/SentryStructuredLoggerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public void Log_LogLevel_CaptureLog(LogLevel logLevel, SentryLogLevel expectedLe
109109
log.ParentSpanId.Should().Be(parentSpanId);
110110
log.AssertAttribute("sentry.environment", "my-environment");
111111
log.AssertAttribute("sentry.release", "my-release");
112-
log.AssertAttribute("sentry.origin", "auto.logging.dotnet_extension");
112+
log.AssertAttribute("sentry.origin", "auto.log.microsoft_extension");
113113
log.AssertAttribute("sentry.sdk.name", "SDK Name");
114114
log.AssertAttribute("sentry.sdk.version", "SDK Version");
115115
log.AssertAttribute("category.name", _fixture.CategoryName);

test/Sentry.Serilog.Tests/SentrySinkTests.Structured.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public void Emit_StructuredLogging_LogEvent(bool withActiveSpan)
119119
log.TryGetAttribute("sentry.release", out object? release).Should().BeTrue();
120120
release.Should().Be("test-release");
121121
log.TryGetAttribute("sentry.origin", out object? origin).Should().BeTrue();
122-
origin.Should().Be("auto.logging.serilog");
122+
origin.Should().Be("auto.log.serilog");
123123
log.TryGetAttribute("sentry.sdk.name", out object? sdkName).Should().BeTrue();
124124
sdkName.Should().Be(SentrySink.SdkName);
125125
log.TryGetAttribute("sentry.sdk.version", out object? sdkVersion).Should().BeTrue();

0 commit comments

Comments
 (0)