1 write to _operationDurationHistogram
Microsoft.Extensions.AI (1)
Embeddings\OpenTelemetryEmbeddingGenerator.cs (1)
70_operationDurationHistogram = OtelMetricHelpers.CreateGenAIOperationDurationHistogram(_meter);
3 references to _operationDurationHistogram
Microsoft.Extensions.AI (3)
Embeddings\OpenTelemetryEmbeddingGenerator.cs (3)
101Stopwatch? stopwatch = _operationDurationHistogram.Enabled ? Stopwatch.StartNew() : null; 201if (_operationDurationHistogram.Enabled && stopwatch is not null) 210_operationDurationHistogram.Record(stopwatch.Elapsed.TotalSeconds, tags);