Udostępnij za pośrednictwem


CosmosClientTelemetryOptions.DisableDistributedTracing Property

Definition

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)

public bool DisableDistributedTracing { get; set; }
member this.DisableDistributedTracing : bool with get, set
Public Property DisableDistributedTracing As Boolean

Property Value

false

Remarks

You can set different thresholds values by setting CosmosThresholdOptions. It would generate events with Request Diagnostics JSON, if any of the configured threshold is crossed, otherwise it would always generate events with Request Diagnostics JSON for failed requests. There is some overhead of emitting the more detailed diagnostics - so recommendation is to choose these thresholds that reduce the noise level and only emit detailed diagnostics when there is really business impact seen.
Refer to know more about open telemetry exporters available.
Refer to know more about this feature.

Applies to