<PackageReference Include="Microsoft.Rest.ClientRuntime" Version="2.3.15" />

Microsoft.Rest.ServiceClientTracing

public static class ServiceClientTracing
Provides a set of methods and properties that help you trace the service client.
public static bool IsEnabled { get; set; }

Gets or sets a value indicating whether tracing is enabled. Tracing can be disabled for performance.

public static long NextInvocationId { get; }

Get the next invocation identifier.

Add a tracing interceptor to be notified of changes.

public static void Configuration(string source, string name, string value)

Represents the tracing configuration for the value of a setting.

public static void Enter(string invocationId, object instance, string method, IDictionary<string, object> parameters)

Represents the tracing entry.

public static void Error(string invocationId, Exception ex)

Represents the tracing error.

public static void Exit(string invocationId, object result)

Abandons the tracing method.

public static void Information(string message, object[] parameters)

Write the informational tracing message.

public static void Information(string message)

Specifies the tracing information.

public static void ReceiveResponse(string invocationId, HttpResponseMessage response)

Receives a tracing response.

Remove a tracing interceptor from change notifications.

public static void SendRequest(string invocationId, HttpRequestMessage request)

Sends a tracing request.