共用方式為


AzureMessagingServiceBusSettings.DisableTracing Property

Definition

Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.

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

Property Value

The default value is false.

Remarks

ServiceBus ActivitySource support in Azure SDK is experimental, the shape of Activities may change in the future without notice. It can be enabled by setting "Azure.Experimental.EnableActivitySource" AppContext switch to true. Or by setting "AZURE_EXPERIMENTAL_ENABLE_ACTIVITY_SOURCE" environment variable to "true".

Applies to