HttpClientLatencyTelemetryExtensions.AddHttpClientLatencyTelemetry Method
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.
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)
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
- services
- IServiceCollection
The IServiceCollection.
Returns
The value of services
.
Remarks
This extension configures latency information collection globally for all http clients.
Applies to
AddHttpClientLatencyTelemetry(IServiceCollection, IConfigurationSection)
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
- services
- IServiceCollection
The IServiceCollection.
- section
- IConfigurationSection
The IConfigurationSection to use for configuring HttpClientLatencyTelemetryOptions.
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>)
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
- services
- IServiceCollection
The IServiceCollection.
- configure
- Action<HttpClientLatencyTelemetryOptions>
The delegate to configure HttpClientLatencyTelemetryOptions with.
Returns
The value of services
.
Remarks
This extension configures outgoing request logs auto collection globally for all http clients.