Activity.TraceStateString 属性

定义

获取或设置 W3C tracestate 标头。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

属性值

String

W3C tracestate 标头。The W3C tracestate header.

注解

tracestate标头用于携带补充信息来跟踪包含在跟踪父级中的标识。The tracestate header is intended to carry supplemental information to trace identity contained in the trace parent. tracestate 包含键/值对的列表,这些键/值对在多个分布式跟踪关系图中传达有关请求位置的信息。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.

逻辑上 TraceStateString 只是一种行李 (如果流类似于行李) ,但由于它应采用特殊大小写方式 (它有自己的 HTTP 标头) ,如果不 lumped 其他行李,则更方便/高效。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.

适用于