Κοινή χρήση μέσω


HttpClientLatencyTelemetryExtensions.AddHttpClientLatencyTelemetry Method

Definition

Overloads

AddHttpClientLatencyTelemetry(IServiceCollection)

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, Action<HttpClientLatencyTelemetryOptions>)

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

AddHttpClientLatencyTelemetry(IServiceCollection)

Source:
HttpClientLatencyTelemetryExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddHttpClientLatencyTelemetry(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddHttpClientLatencyTelemetry (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddHttpClientLatencyTelemetry : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddHttpClientLatencyTelemetry (services As IServiceCollection) As IServiceCollection

Parameters

Returns

The value of services.

Remarks

This extension configures latency information collection globally for all http clients.

Applies to

AddHttpClientLatencyTelemetry(IServiceCollection, IConfigurationSection)

Source:
HttpClientLatencyTelemetryExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddHttpClientLatencyTelemetry(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::Configuration::IConfigurationSection ^ section);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddHttpClientLatencyTelemetry (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection section);
static member AddHttpClientLatencyTelemetry : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddHttpClientLatencyTelemetry (services As IServiceCollection, section As IConfigurationSection) As IServiceCollection

Parameters

Returns

The value of services.

Remarks

This extension configures outgoing request logs auto collection globally for all http clients.

Applies to

AddHttpClientLatencyTelemetry(IServiceCollection, Action<HttpClientLatencyTelemetryOptions>)

Source:
HttpClientLatencyTelemetryExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddHttpClientLatencyTelemetry(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Http::Latency::HttpClientLatencyTelemetryOptions ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddHttpClientLatencyTelemetry (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Http.Latency.HttpClientLatencyTelemetryOptions> configure);
static member AddHttpClientLatencyTelemetry : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Http.Latency.HttpClientLatencyTelemetryOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddHttpClientLatencyTelemetry (services As IServiceCollection, configure As Action(Of HttpClientLatencyTelemetryOptions)) As IServiceCollection

Parameters

Returns

The value of services.

Remarks

This extension configures outgoing request logs auto collection globally for all http clients.

Applies to