aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/proto/census
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2017-02-13 10:13:24 -0800
committerGravatar David Garcia Quintas <dgq@google.com>2017-02-13 10:13:24 -0800
commit7317195b8e1e05109ee2e71131e90a90a0a09f40 (patch)
tree5ba8bf3bc89c55b83b27a2b499af71ee380c10e1 /src/proto/census
parent191d52c4c1246b7fb80a901186fa39f101738815 (diff)
parentee31910271a72c4e454a9d64ceafa530566388a6 (diff)
Merge branch 'master' of github.com:grpc/grpc into compression_implicit_encoding
Diffstat (limited to 'src/proto/census')
-rw-r--r--src/proto/census/trace_context.proto20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/proto/census/trace_context.proto b/src/proto/census/trace_context.proto
index a5d5a9595d..fc0a54d2ce 100644
--- a/src/proto/census/trace_context.proto
+++ b/src/proto/census/trace_context.proto
@@ -31,18 +31,14 @@ syntax = "proto3";
package google.trace;
-// A TraceId uniquely represents a single Trace. It is a 128-bit nonce.
-message TraceId {
- fixed64 hi = 1;
- fixed64 lo = 2;
-}
-
// Tracing information that is propagated with RPC's.
message TraceContext {
- // Trace identifer. Must be present.
- TraceId trace_id = 1;
- // ID of parent (client) span. Must be present.
- fixed64 span_id = 2;
- // true if this trace is sampled.
- bool is_sampled = 3;
+ // A TraceId uniquely represents a single Trace. It is a 128-bit nonce.
+ // The 128-bit ID is split into 2 64-bit chunks. (REQUIRED)
+ fixed64 trace_id_hi = 1;
+ fixed64 trace_id_lo = 2;
+ // ID of parent (client) span. (REQUIRED)
+ fixed64 span_id = 3;
+ // Span option flags. First bit is true if this trace is sampled. (OPTIONAL)
+ fixed32 span_options = 4;
}