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