Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 38645a4

Browse files
author
Bogdan Drutu
authored
Add information about trace-state in the SpanContext. (#132)
1 parent eac275b commit 38645a4

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

trace/Span.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ Represents the options for a trace. It is represented as 1 byte (bitmap).
3030
##### Supported bits
3131
* Sampling bit - Bit to represent whether trace is sampled or not (mask `0x1`).
3232

33+
#### TraceState
34+
Carries tracing-system specific context in a list of key value pairs. TraceState allows different
35+
vendors propagate additional information and inter-operate with their legacy Id formats.
36+
37+
For more details see [this][TraceStateLink].
38+
3339
## Span creation
3440
The implementation MUST allow users to create two types of Spans:
3541
* Root Spans - spans that do not have a parent.
@@ -78,3 +84,4 @@ propagation.
7884
[goContext]: https://golang.org/pkg/context
7985
[javaContext]: https://github.com/grpc/grpc-java/blob/master/context/src/main/java/io/grpc/Context.java
8086
[SpanDataModel]: https://github.com/census-instrumentation/opencensus-proto/blob/master/opencensus/proto/trace/trace.proto
87+
[TraceStateLink]: https://github.com/w3c/distributed-tracing/blob/master/trace_context/HTTP_HEADER_FORMAT.md#tracestate-field

0 commit comments

Comments
 (0)