HttpDiagnosticsHttpRequestMessageExtensions Class

Definition

Extensions for telemetry utilities.

public static class HttpDiagnosticsHttpRequestMessageExtensions
Inheritance
HttpDiagnosticsHttpRequestMessageExtensions

Methods

GetRequestMetadata(HttpRequestMessage)

Gets metadata for outgoing requests to be used for telemetry purposes.

SetRequestMetadata(HttpRequestMessage, RequestMetadata)

Sets metadata for outgoing requests to be used for telemetry purposes.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)