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)
208
if (
_tokenUsageHistogram
.Enabled && inputTokens.HasValue)
214
_tokenUsageHistogram
.Record(inputTokens.Value);