共用方式為


TokenCredentialDiagnosticsOptions Class

Definition

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

public class TokenCredentialDiagnosticsOptions : Azure.Core.DiagnosticsOptions
type TokenCredentialDiagnosticsOptions = class
    inherit DiagnosticsOptions
Public Class TokenCredentialDiagnosticsOptions
Inherits DiagnosticsOptions
Inheritance
TokenCredentialDiagnosticsOptions

Constructors

TokenCredentialDiagnosticsOptions()

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.

(Inherited from DiagnosticsOptions)
IsAccountIdentifierLoggingEnabled

If true, we try to log the account identifiers by parsing the received access token. The account identifiers we try to log are:

  • The Application or Client Identifier
  • User Principal Name
  • Tenant Identifier
  • Object Identifier of the authenticated user or application
IsDistributedTracingEnabled

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

(Inherited from DiagnosticsOptions)
IsLoggingContentEnabled

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

(Inherited from DiagnosticsOptions)
IsLoggingEnabled

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

(Inherited from DiagnosticsOptions)
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 AZURE_TELEMETRY_DISABLED to true, false, 1 or 0.

(Inherited from DiagnosticsOptions)
LoggedContentSizeLimit

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

(Inherited from DiagnosticsOptions)
LoggedHeaderNames

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

(Inherited from DiagnosticsOptions)
LoggedQueryParameters

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

(Inherited from DiagnosticsOptions)

Applies to