Share via


CosmosClientTelemetryOptions Class

Definition

Telemetry Options for Cosmos Client to enable/disable telemetry and distributed tracing along with corresponding threshold values.

public class CosmosClientTelemetryOptions
type CosmosClientTelemetryOptions = class
Public Class CosmosClientTelemetryOptions
Inheritance
CosmosClientTelemetryOptions

Constructors

CosmosClientTelemetryOptions()

Properties

CosmosThresholdOptions

Threshold values for Distributed Tracing. These values decides whether to generate an EventSource with request diagnostics or not.

DisableDistributedTracing

This method enable/disable generation of operation level Activity if listener is subscribed to the Source Name "Azure.Cosmos.Operation"(to capture operation level traces) and "Azure-Cosmos-Operation-Request-Diagnostics"(to capture events with request diagnostics JSON)

DisableSendingMetricsToService

Disable sending telemetry data to Microsoft, CosmosThresholdOptions is not applicable for this.

QueryTextMode

Enables printing query in Traces db.query.text attribute. By default, query is not printed. Users have the option to enable printing parameterized or all queries, but has to beware that customer data may be shown when the later option is chosen. It's the user's responsibility to sanitize the queries if necessary.

Applies to