共用方式為


ServiceContext.TraceId Property

Definition

Gets the trace ID of the service.

public string TraceId { get; }
member this.TraceId : string
Public ReadOnly Property TraceId As String

Property Value

The trace ID of the service.

Remarks

The trace ID can be used as an identifier for generated traces.

Applies to