Class HttpClientBuilderExtensions (4.3.1)

public static class HttpClientBuilderExtensions

Extensions methods for IHttpClientBuilder.

Inheritance

Object > HttpClientBuilderExtensions

Namespace

Google.Cloud.Diagnostics.Common

Assembly

Google.Cloud.Diagnostics.Common.dll

Methods

AddOutgoingGoogleTraceHandler(IHttpClientBuilder)

public static IHttpClientBuilder AddOutgoingGoogleTraceHandler(this IHttpClientBuilder clientBuilder)

Adds an UnchainedTraceHeaderPropagatingHandler to the HTTP client being built, which will propagate trace information for outgoing requests, made with this client, when the request being handled by this server is already being traced

Parameter
NameDescription
clientBuilderIHttpClientBuilder
Returns
TypeDescription
IHttpClientBuilder