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. |
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기