HttpClientLatencyTelemetryExtensions.AddHttpClientLatencyTelemetry Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
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)
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)
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.
- section
- IConfigurationSection
que IConfigurationSection se va a usar para 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
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.
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.