Skip to content

Commit 1242db8

Browse files
authored
Set default stats collection flags to false in BoundConfiguration (#157)
The defaults for `EnableTcpStats` and `EnableThreadPoolStats` were changed from `true` to `false`. This ensures a more conservative approach to resource usage unless explicitly enabled.
1 parent f33c998 commit 1242db8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Elastic.Transport/Components/Pipeline/BoundConfiguration.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ public BoundConfiguration(ITransportConfiguration global, IRequestConfiguration?
5757
AllowedStatusCodes = local?.AllowedStatusCodes ?? EmptyReadOnly<int>.Collection;
5858
ClientCertificates = local?.ClientCertificates ?? global.ClientCertificates;
5959
TransferEncodingChunked = local?.TransferEncodingChunked ?? global.TransferEncodingChunked ?? false;
60-
EnableTcpStats = local?.EnableTcpStats ?? global.EnableTcpStats ?? true;
61-
EnableThreadPoolStats = local?.EnableThreadPoolStats ?? global.EnableThreadPoolStats ?? true;
60+
EnableTcpStats = local?.EnableTcpStats ?? global.EnableTcpStats ?? false;
61+
EnableThreadPoolStats = local?.EnableThreadPoolStats ?? global.EnableThreadPoolStats ?? false;
6262
ParseAllHeaders = local?.ParseAllHeaders ?? global.ParseAllHeaders ?? false;
6363
ResponseHeadersToParse = local is not null
6464
? new HeadersList(local.ResponseHeadersToParse, global.ResponseHeadersToParse)

0 commit comments

Comments
 (0)