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

Commit 5524008

Browse files
author
Bogdan Drutu
authored
Add tracestate field to the Span proto. (#74)
1 parent e5be5a8 commit 5524008

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

opencensus/proto/trace/trace.proto

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ option go_package = "github.com/census-instrumentation/opencensus-proto/gen-go/t
3232
// or none at all. Spans do not need to be contiguous - there may be
3333
// gaps or overlaps between spans in a trace.
3434
//
35-
// The next id is 15.
35+
// The next id is 16.
3636
// TODO(bdrutu): Add an example.
3737
message Span {
3838
// A unique identifier for a trace. All spans from the same trace share
@@ -47,6 +47,23 @@ message Span {
4747
// This field is required.
4848
bytes span_id = 2;
4949

50+
// The `tracestate` field conveys information about request position in multiple distributed
51+
// tracing graphs.
52+
//
53+
// There can be a maximum of 32 members in the map.
54+
//
55+
// The key must begin with a lowercase letter, and can only contain lowercase letters 'a'-'z',
56+
// digits '0'-'9', underscores '_', dashes '-', asterisks '*', and forward slashes '/'. For
57+
// multi-tenant vendors scenarios '@' sign can be used to prefix vendor name. The maximum length
58+
// for the key is 256 characters.
59+
//
60+
// The value is opaque string up to 256 characters printable ASCII RFC0020 characters (i.e., the
61+
// range 0x20 to 0x7E) except ',' and '='. Note that this also excludes tabs, newlines, carriage
62+
// returns, etc.
63+
//
64+
// See the https://github.com/w3c/distributed-tracing for more details about this field.
65+
map<string, string> tracestate = 15;
66+
5067
// The `span_id` of this span's parent span. If this is a root span, then this
5168
// field must be empty. The ID is an 8-byte array.
5269
bytes parent_span_id = 3;

0 commit comments

Comments
 (0)