protected HttpClientDelegatingHandlerBase(HttpClientMetricsOptionsBase?options, TCollector?customMetric, HttpClientIdentity identity) { _identity = identity; MetricFactory = Metrics.WithCustomRegistry(options?.Registry ?? Metrics.DefaultRegistry); if (customMetric != null) { _metric = customMetric; ValidateNoUnexpectedLabelNames(); } else { _metric = CreateMetricInstance(HttpClientRequestLabelNames.All); } }
public HttpClientInProgressHandler(HttpClientInProgressOptions?options, HttpClientIdentity identity) : base(options, options?.Gauge, identity) { }
public HttpClientResponseDurationHandler(HttpClientResponseDurationOptions?options, HttpClientIdentity identity) : base(options, options?.Histogram, identity) { }
public HttpClientRequestCountHandler(HttpClientRequestCountOptions?options, HttpClientIdentity identity) : base(options, options?.Counter, identity) { }