編輯

共用方式為


Activity.TraceStateString Property

Definition

Gets or sets the W3C tracestate header.

public:
 property System::String ^ TraceStateString { System::String ^ get(); void set(System::String ^ value); };
public string? TraceStateString { get; set; }
public string TraceStateString { get; set; }
member this.TraceStateString : string with get, set
Public Property TraceStateString As String

Property Value

The W3C tracestate header.

Remarks

The tracestate header is intended to carry supplemental information to trace identity contained in the trace parent. tracestate consists of a list of key/value pairs that convey information about the request position in multiple distributed tracing graphs. This information is typically used by distributed tracing systems and should not be used for general purpose baggage, since this may break the correlation of a distributed trace.

Logically TraceStateString is just a kind of baggage (if flows just like baggage), but because it is expected to be special-cased (it has its own HTTP header), it is more convenient/efficient if it is not lumped in with other baggage.

Applies to