DiagnosticsOptions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Exposes client options related to logging, telemetry, and distributed tracing.
public class DiagnosticsOptions
type DiagnosticsOptions = class
Public Class DiagnosticsOptions
- Inheritance
-
DiagnosticsOptions
- Derived
Constructors
DiagnosticsOptions() |
Creates a new instance of DiagnosticsOptions with default values. |
Properties
ApplicationId |
Gets or sets the value sent as 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 activities (Activity) are going to be created for the 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, FrameworkDescription
and OSDescription should be sent.
The default value can be controlled process wide by setting |
LoggedContentSizeLimit |
Gets or sets value indicating maximum size of content to log in bytes. Defaults to 4096. |
LoggedHeaderNames |
Gets a list of header names that are not redacted during logging. |
LoggedQueryParameters |
Gets a list of query parameter names that are not redacted during logging. |