DiagnosticsOptions Class

Definition

Exposes client options related to logging, telemetry and distributed tracing.

public class DiagnosticsOptions
type DiagnosticsOptions = class
Public Class DiagnosticsOptions
Inheritance
System.Object
DiagnosticsOptions

Properties

ApplicationId

Gets or sets the value sent a the first part of "User-Agent" headers for all requests issues by this client. Defaults to DefaultApplicationId.

DefaultApplicationId

Gets or sets the default application id. Default application id would be set on all instances.

IsDistributedTracingEnabled

Gets or sets value indicating whether distributed tracing spans are going to be created for this clients methods calls and HTTP calls.

IsLoggingContentEnabled

Gets or sets value indicating if request or response content should be logged.

IsLoggingEnabled

Get or sets value indicating whether HTTP pipeline logging is enabled.

IsTelemetryEnabled

Gets or sets value indicating whether the "User-Agent" header containing ApplicationId, client library package name and version, System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription and System.Runtime.InteropServices.RuntimeInformation.OSDescription should be sent. The default value can be controlled process wide by setting AZURE_TELEMETRY_DISABLED to true, false, 1 or 0.

LoggedContentSizeLimit

Gets or sets value indicating maximum size of content to log in bytes. Defaults to 4096.

LoggedHeaderNames

Gets a list of headers names that are not redacted during logging.

LoggedQueryParameters

Gets a list of query parameter names that are not redacted during logging.

Applies to