14 instantiations of InstrumentAdvice
Microsoft.AspNetCore.Authentication.Core (1)
AuthenticationMetrics.cs (1)
30advice: new() { HistogramBucketBoundaries = MetricsConstants.ShortSecondsBucketBoundaries });
Microsoft.AspNetCore.Hosting (1)
Internal\HostingMetrics.cs (1)
33advice: new InstrumentAdvice<double> { HistogramBucketBoundaries = MetricsConstants.ShortSecondsBucketBoundaries });
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionsMetrics.cs (1)
37advice: new InstrumentAdvice<double> { HistogramBucketBoundaries = MetricsConstants.LongSecondsBucketBoundaries });
Microsoft.AspNetCore.RateLimiting (2)
RateLimitingMetrics.cs (2)
35advice: new InstrumentAdvice<double> { HistogramBucketBoundaries = MetricsConstants.ShortSecondsBucketBoundaries }); 46advice: new InstrumentAdvice<double> { HistogramBucketBoundaries = MetricsConstants.ShortSecondsBucketBoundaries });
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Infrastructure\KestrelMetrics.cs (2)
51advice: new InstrumentAdvice<double> { HistogramBucketBoundaries = MetricsConstants.LongSecondsBucketBoundaries }); 77advice: new InstrumentAdvice<double> { HistogramBucketBoundaries = MetricsConstants.ShortSecondsBucketBoundaries });
Microsoft.Extensions.AI (4)
ChatCompletion\OpenTelemetryChatClient.cs (2)
72advice: new() { HistogramBucketBoundaries = OpenTelemetryConsts.GenAI.Client.TokenUsage.ExplicitBucketBoundaries }); 78advice: new() { HistogramBucketBoundaries = OpenTelemetryConsts.GenAI.Client.OperationDuration.ExplicitBucketBoundaries });
Embeddings\OpenTelemetryEmbeddingGenerator.cs (2)
69advice: new() { HistogramBucketBoundaries = OpenTelemetryConsts.GenAI.Client.TokenUsage.ExplicitBucketBoundaries }); 75advice: new() { HistogramBucketBoundaries = OpenTelemetryConsts.GenAI.Client.OperationDuration.ExplicitBucketBoundaries });
System.Net.Http (2)
System\Net\Http\DiagnosticsHelper.cs (1)
16public static InstrumentAdvice<double> ShortHistogramAdvice { get; } = new()
System\Net\Http\SocketsHttpHandler\Metrics\SocketsHttpHandlerMetrics.cs (1)
20advice: new InstrumentAdvice<double>()
System.Net.NameResolution (1)
System\Net\NameResolutionMetrics.cs (1)
19advice: new InstrumentAdvice<double>()
9 references to InstrumentAdvice
System.Diagnostics.DiagnosticSource (8)
System\Diagnostics\Metrics\Histogram.cs (1)
23internal Histogram(Meter meter, string name, string? unit, string? description, IEnumerable<KeyValuePair<string, object?>>? tags, InstrumentAdvice<T>? advice)
System\Diagnostics\Metrics\Instrument.common.cs (4)
19/// Gets the <see cref="InstrumentAdvice{T}"/> associated with the instrument. 21public InstrumentAdvice<T>? Advice { get; } 68/// <param name="advice">Optional <see cref="InstrumentAdvice{T}"/>.</param> 75InstrumentAdvice<T>? advice = default)
System\Diagnostics\Metrics\InstrumentAdvice.cs (1)
18/// Initializes a new instance of the <see cref="InstrumentAdvice{T}"/> class.
System\Diagnostics\Metrics\Meter.cs (2)
218/// <param name="advice">Optional <see cref="InstrumentAdvice{T}"/> to attach to the histogram.</param> 222public 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
System.Net.Http (1)
System\Net\Http\DiagnosticsHelper.cs (1)
16public static InstrumentAdvice<double> ShortHistogramAdvice { get; } = new()