Skip to content

Commit 4089230

Browse files
authored
test: add missing Logs test (#4718)
1 parent 522f80e commit 4089230

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- Spans and Transactions now implement `IDisposable` so that they can be used with `using` statements/declarations that will automatically finish the span with a status of OK when it passes out of scope, if it has not already been finished, to be consistent with `Activity` classes when using OpenTelemetry ([#4627](https://github.com/getsentry/sentry-dotnet/pull/4627))
88
- SpanTracer and TransactionTracer are still public but these are now `sealed` (see also [#4627](https://github.com/getsentry/sentry-dotnet/pull/4627))
99
- CaptureFeedback now returns a `SentryId` and a `CaptureFeedbackResult` out parameter that indicate whether feedback was captured successfully and what the reason for failure was otherwise ([#4613](https://github.com/getsentry/sentry-dotnet/pull/4613))
10+
- The _Structured Logs_ APIs are now stable: removed `Experimental` from `SentryOptions` ([#4699](https://github.com/getsentry/sentry-dotnet/pull/4699))
1011

1112
### Features
1213

test/Sentry.Tests/SentryOptionsTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ public void EnableBackpressureHandling_Default_True()
2020
sut.EnableBackpressureHandling.Should().BeTrue();
2121
}
2222

23+
[Fact]
24+
public void EnableLogs_Default_False()
25+
{
26+
var sut = new SentryOptions();
27+
sut.EnableLogs.Should().BeFalse();
28+
}
29+
2330
[Fact]
2431
public void RequestBodyCompressionLevel_ByDefault_Optimal()
2532
{

0 commit comments

Comments
 (0)