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

Commit

Permalink
Add information about trace-state in the SpanContext. (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan Drutu committed Jul 10, 2018
1 parent eac275b commit 38645a4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions trace/Span.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ Represents the options for a trace. It is represented as 1 byte (bitmap).
##### Supported bits
* Sampling bit - Bit to represent whether trace is sampled or not (mask `0x1`).

#### TraceState
Carries tracing-system specific context in a list of key value pairs. TraceState allows different
vendors propagate additional information and inter-operate with their legacy Id formats.

For more details see [this][TraceStateLink].

## Span creation
The implementation MUST allow users to create two types of Spans:
* Root Spans - spans that do not have a parent.
Expand Down Expand Up @@ -78,3 +84,4 @@ propagation.
[goContext]: https://golang.org/pkg/context
[javaContext]: https://github.com/grpc/grpc-java/blob/master/context/src/main/java/io/grpc/Context.java
[SpanDataModel]: https://github.com/census-instrumentation/opencensus-proto/blob/master/opencensus/proto/trace/trace.proto
[TraceStateLink]: https://github.com/w3c/distributed-tracing/blob/master/trace_context/HTTP_HEADER_FORMAT.md#tracestate-field

0 comments on commit 38645a4

Please sign in to comment.