1 instantiation of Histogram
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\Meter.cs (1)
224=> (Histogram<T>)GetOrCreateInstrument<T>(typeof(Histogram<T>), name, unit, description, tags, () => new Histogram<T>(this, name, unit, description, tags, advice));
49 references to Histogram
Aspire.Confluent.Kafka (2)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\ConfluentKafkaCommon.cs (2)
23internal static readonly Histogram<double> ReceiveDurationHistogram = Meter.CreateHistogram<double>(SemanticConventions.MetricMessagingReceiveDuration); 25internal static readonly Histogram<double> PublishDurationHistogram = Meter.CreateHistogram<double>(SemanticConventions.MetricMessagingPublishDuration);
Microsoft.AspNetCore.Authentication.Core (1)
AuthenticationMetrics.cs (1)
16private readonly Histogram<double> _authenticatedRequestDuration;
Microsoft.AspNetCore.Components (4)
ComponentsMetrics.cs (4)
25private readonly Histogram<double> _eventDuration; 26private readonly Histogram<double> _parametersDuration; 27private readonly Histogram<double> _batchDuration; 28private readonly Histogram<int> _batchSize;
Microsoft.AspNetCore.Components.Server (1)
Circuits\CircuitMetrics.cs (1)
17private readonly Histogram<double> _circuitDuration;
Microsoft.AspNetCore.Hosting (1)
Internal\HostingMetrics.cs (1)
18private readonly Histogram<double> _requestDuration;
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionsMetrics.cs (1)
26private readonly Histogram<double> _connectionDuration;
Microsoft.AspNetCore.Identity (1)
SignInManagerMetrics.cs (1)
23private readonly Histogram<double> _authenticateDuration;
Microsoft.AspNetCore.RateLimiting (2)
RateLimitingMetrics.cs (2)
17private readonly Histogram<double> _requestLeaseDurationCounter; 19private readonly Histogram<double> _queuedRequestDurationCounter;
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Infrastructure\KestrelMetrics.cs (2)
35private readonly Histogram<double> _connectionDuration; 41private readonly Histogram<double> _tlsHandshakeDuration;
Microsoft.Extensions.AI (17)
ChatCompletion\OpenTelemetryChatClient.cs (4)
38private readonly Histogram<int> _tokenUsageHistogram; 39private readonly Histogram<double> _operationDurationHistogram; 40private readonly Histogram<double> _timeToFirstChunkHistogram; 41private readonly Histogram<double> _timePerOutputChunkHistogram;
ChatCompletion\OpenTelemetryImageGenerator.cs (2)
32private readonly Histogram<int> _tokenUsageHistogram; 33private readonly Histogram<double> _operationDurationHistogram;
Common\OtelMetricHelpers.cs (2)
12public static Histogram<int> CreateGenAITokenUsageHistogram(Meter meter) => 20public static Histogram<double> CreateGenAIOperationDurationHistogram(Meter meter) =>
Embeddings\OpenTelemetryEmbeddingGenerator.cs (2)
32private readonly Histogram<int> _tokenUsageHistogram; 33private readonly Histogram<double> _operationDurationHistogram;
Files\OpenTelemetryHostedFileClient.cs (1)
55private readonly Histogram<double> _operationDurationHistogram;
Realtime\OpenTelemetryRealtimeClientSession.cs (2)
88private readonly Histogram<int> _tokenUsageHistogram; 89private readonly Histogram<double> _operationDurationHistogram;
SpeechToText\OpenTelemetrySpeechToTextClient.cs (2)
34private readonly Histogram<int> _tokenUsageHistogram; 35private readonly Histogram<double> _operationDurationHistogram;
TextToSpeech\OpenTelemetryTextToSpeechClient.cs (2)
33private readonly Histogram<int> _tokenUsageHistogram; 34private readonly Histogram<double> _operationDurationHistogram;
Microsoft.Extensions.Identity.Core (3)
UserManagerMetrics.cs (3)
27private readonly Histogram<double> _createDuration; 28private readonly Histogram<double> _updateDuration; 29private readonly Histogram<double> _deleteDuration;
Microsoft.Extensions.ServiceDiscovery.Dns (1)
Resolver\DnsResolver.Telemetry.cs (1)
14private static readonly Histogram<double> s_queryDuration = s_meter.CreateHistogram<double>("query.duration", "ms", "DNS query duration");
Stress.ApiService (1)
TestMetrics.cs (1)
15private readonly Histogram<double> _histogram;
System.Diagnostics.DiagnosticSource (7)
System\Diagnostics\Metrics\AggregationManager.cs (1)
424else if (genericDefType == typeof(Histogram<>))
System\Diagnostics\Metrics\Meter.cs (6)
182public Histogram<T> CreateHistogram<T>(string name) where T : struct 195public Histogram<T> CreateHistogram<T>(string name, string? unit, string? description) where T : struct 209public Histogram<T> CreateHistogram<T>(string name, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags) where T : struct 223public Histogram<T> CreateHistogram<T>(string name, string? unit = default, string? description = default, IEnumerable<KeyValuePair<string, object?>>? tags = default, InstrumentAdvice<T>? advice = default) where T : struct 224=> (Histogram<T>)GetOrCreateInstrument<T>(typeof(Histogram<T>), name, unit, description, tags, () => new Histogram<T>(this, name, unit, description, tags, advice));
System.Net.Http (4)
System\Net\Http\Metrics\HttpMetricsEnrichmentContext.cs (1)
106Histogram<double> requestDuration)
System\Net\Http\Metrics\MetricsHandler.cs (1)
133private readonly Histogram<double> _requestsDuration;
System\Net\Http\SocketsHttpHandler\Metrics\SocketsHttpHandlerMetrics.cs (2)
139public readonly Histogram<double> ConnectionDuration; 141public readonly Histogram<double> RequestsQueueDuration;
System.Net.NameResolution (1)
System\Net\NameResolutionMetrics.cs (1)
15private static readonly Histogram<double> s_lookupDuration = s_meter.CreateHistogram<double>(