1 write to _operationDurationHistogram
Microsoft.Extensions.AI (1)
ChatCompletion\OpenTelemetryChatClient.cs (1)
81
_operationDurationHistogram
= _meter.CreateHistogram<double>(
4 references to _operationDurationHistogram
Microsoft.Extensions.AI (4)
ChatCompletion\OpenTelemetryChatClient.cs (4)
139
Stopwatch? stopwatch =
_operationDurationHistogram
.Enabled ? Stopwatch.StartNew() : null;
170
Stopwatch? stopwatch =
_operationDurationHistogram
.Enabled ? Stopwatch.StartNew() : null;
334
if (
_operationDurationHistogram
.Enabled && stopwatch is not null)
344
_operationDurationHistogram
.Record(stopwatch.Elapsed.TotalSeconds, tags);