1 write to _operationDurationHistogram
Microsoft.Extensions.AI (1)
Embeddings\OpenTelemetryEmbeddingGenerator.cs (1)
68_operationDurationHistogram = _meter.CreateHistogram<double>(
3 references to _operationDurationHistogram
Microsoft.Extensions.AI (3)
Embeddings\OpenTelemetryEmbeddingGenerator.cs (3)
86Stopwatch? stopwatch = _operationDurationHistogram.Enabled ? Stopwatch.StartNew() : null; 176if (_operationDurationHistogram.Enabled && stopwatch is not null) 185_operationDurationHistogram.Record(stopwatch.Elapsed.TotalSeconds, tags);