<PackageReference Include="Azure.Core" Version="1.49.0" />

DiagnosticsOptions

public class DiagnosticsOptions
Exposes client options related to logging, telemetry, and distributed tracing.
public static string DefaultApplicationId { get; set; }

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

public string ApplicationId { get; set; }

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

public bool IsDistributedTracingEnabled { get; set; }

Gets or sets value indicating whether distributed tracing activities ( Activity) are going to be created for the clients methods calls and HTTP calls.

public bool IsLoggingContentEnabled { get; set; }

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

public bool IsLoggingEnabled { get; set; }

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

public bool IsTelemetryEnabled { get; set; }

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

public int LoggedContentSizeLimit { get; set; }

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

public IList<string> LoggedHeaderNames { get; }

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

public IList<string> LoggedQueryParameters { get; }

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