Compartir a través de


HttpClientLatencyTelemetryExtensions.AddHttpClientLatencyTelemetry Método

Definición

Sobrecargas

AddHttpClientLatencyTelemetry(IServiceCollection)

Agrega un DelegatingHandler para recopilar información de latencia y enriquecer el registro de solicitudes salientes para todos los clientes http.

AddHttpClientLatencyTelemetry(IServiceCollection, IConfigurationSection)

Agrega un DelegatingHandler para recopilar información de latencia y enriquecer el registro de solicitudes salientes para todos los clientes http.

AddHttpClientLatencyTelemetry(IServiceCollection, Action<HttpClientLatencyTelemetryOptions>)

Agrega un DelegatingHandler para recopilar información de latencia y enriquecer el registro de solicitudes salientes para todos los clientes http.

AddHttpClientLatencyTelemetry(IServiceCollection)

Source:
HttpClientLatencyTelemetryExtensions.cs

Agrega un DelegatingHandler para recopilar información de latencia y enriquecer el registro de solicitudes salientes para todos los clientes http.

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

Parámetros

services
IServiceCollection

El parámetro de cadena de consulta IServiceCollection.

Devoluciones

El valor de services.

Comentarios

Esta extensión configura la recopilación de información de latencia globalmente para todos los clientes http.

Se aplica a

AddHttpClientLatencyTelemetry(IServiceCollection, IConfigurationSection)

Source:
HttpClientLatencyTelemetryExtensions.cs

Agrega un DelegatingHandler para recopilar información de latencia y enriquecer el registro de solicitudes salientes para todos los clientes http.

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

Parámetros

services
IServiceCollection

El parámetro de cadena de consulta IServiceCollection.

Devoluciones

El valor de services.

Comentarios

Esta extensión configura la recopilación automática de registros de solicitudes salientes globalmente para todos los clientes http.

Se aplica a

AddHttpClientLatencyTelemetry(IServiceCollection, Action<HttpClientLatencyTelemetryOptions>)

Source:
HttpClientLatencyTelemetryExtensions.cs

Agrega un DelegatingHandler para recopilar información de latencia y enriquecer el registro de solicitudes salientes para todos los clientes http.

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

Parámetros

services
IServiceCollection

El parámetro de cadena de consulta IServiceCollection.

configure
Action<HttpClientLatencyTelemetryOptions>

Delegado con el que se va a configurar HttpClientLatencyTelemetryOptions .

Devoluciones

El valor de services.

Comentarios

Esta extensión configura la recopilación automática de registros de solicitudes salientes globalmente para todos los clientes http.

Se aplica a