HttpClientLatencyTelemetryExtensions Class

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Extensions to add http client latency telemetry.

C#
public static class HttpClientLatencyTelemetryExtensions
Inheritance
HttpClientLatencyTelemetryExtensions

Methods

AddHttpClientLatencyTelemetry(IServiceCollection, Action<HttpClientLatencyTelemetryOptions>)

Adds a DelegatingHandler to collect latency information and enrich outgoing request log for all http clients.

AddHttpClientLatencyTelemetry(IServiceCollection, IConfigurationSection)

Adds a DelegatingHandler to collect latency information and enrich outgoing request log for all http clients.

AddHttpClientLatencyTelemetry(IServiceCollection)

Adds a DelegatingHandler to collect latency information and enrich outgoing request log for all http clients.

Applies to

Produk Versi
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)