Skip to content

Commit 2705b3d

Browse files
Enable backpressure handling by default
1 parent 33615f4 commit 2705b3d

4 files changed

+13
-1
lines changed

src/Sentry/SentryOptions.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ public bool IsGlobalModeEnabled
9898
/// Enables or disables automatic backpressure handling. When enabled, the SDK will monitor system health and
9999
/// reduce the sampling rate of events and transactions when the system is under load.
100100
/// </summary>
101-
public bool EnableBackpressureHandling { get; set; } = false;
101+
/// <remarks>
102+
/// Defaults to true / enabled.
103+
/// </remarks>
104+
public bool EnableBackpressureHandling { get; set; } = true;
102105

103106
/// <summary>
104107
/// This holds a reference to the current transport, when one is active.

test/Sentry.Tests/SentryOptionsTests.Integrations_default_ones_are_properly_registered.DotNet10_0.DotNet.verified.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
https://[email protected]:65535/2147483647
66
]
77
},
8+
{
9+
Message: Starting BackpressureMonitor.
10+
},
811
{
912
Message: Registering integration: '{0}'.,
1013
Args: [

test/Sentry.Tests/SentryOptionsTests.Integrations_default_ones_are_properly_registered.DotNet8_0.DotNet.verified.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
https://[email protected]:65535/2147483647
66
]
77
},
8+
{
9+
Message: Starting BackpressureMonitor.
10+
},
811
{
912
Message: Registering integration: '{0}'.,
1013
Args: [

test/Sentry.Tests/SentryOptionsTests.Integrations_default_ones_are_properly_registered.DotNet9_0.DotNet.verified.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
https://[email protected]:65535/2147483647
66
]
77
},
8+
{
9+
Message: Starting BackpressureMonitor.
10+
},
811
{
912
Message: Registering integration: '{0}'.,
1013
Args: [

0 commit comments

Comments
 (0)