1 write to _tokenUsageHistogram
Microsoft.Extensions.AI (1)
Embeddings\OpenTelemetryEmbeddingGenerator.cs (1)
65_tokenUsageHistogram = _meter.CreateHistogram<int>(
2 references to _tokenUsageHistogram
Microsoft.Extensions.AI (2)
Embeddings\OpenTelemetryEmbeddingGenerator.cs (2)
208if (_tokenUsageHistogram.Enabled && inputTokens.HasValue) 214_tokenUsageHistogram.Record(inputTokens.Value);