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