We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6341b90 commit 9e14242Copy full SHA for 9e14242
src/Elasticsearch.Net/Connection/RequestState/TransportRequestState.cs
@@ -94,7 +94,7 @@ public TransportRequestState(
94
this.RequestParameters = requestParameters;
95
this._traceEnabled = settings.TraceEnabled;
96
this._metricsEnabled = settings.MetricsEnabled;
97
- if (this._metricsEnabled)
+ if (this._metricsEnabled || this._traceEnabled)
98
this._stopwatch = Stopwatch.StartNew();
99
100
this.Method = method;
0 commit comments