feat: pass tracing context in proto (#120)
* feat: pass tracing context in proto * fix: run make
This commit is contained in:
@@ -29,10 +29,9 @@ message RequestHeader {
|
||||
AuthHeader authorization = 3;
|
||||
// The `dbname` for the request
|
||||
string dbname = 4;
|
||||
// TraceID of request
|
||||
uint64 trace_id = 5;
|
||||
// SpanID of request
|
||||
uint64 span_id = 6;
|
||||
// Encoded trace_id & span_id, follow the w3c Trace Context
|
||||
// https://www.w3.org/TR/trace-context/#header-name
|
||||
map<string, string> tracing_context = 5;
|
||||
}
|
||||
|
||||
message ResponseHeader { Status status = 1; }
|
||||
|
||||
@@ -25,6 +25,9 @@ message RequestHeader {
|
||||
// member_id is the ID of the sender server.
|
||||
uint64 member_id = 3;
|
||||
Role role = 4;
|
||||
// Encoded trace_id & span_id, follow the w3c Trace Context
|
||||
// https://www.w3.org/TR/trace-context/#header-name
|
||||
map<string, string> tracing_context = 5;
|
||||
}
|
||||
|
||||
enum Role {
|
||||
@@ -49,9 +52,7 @@ message Peer {
|
||||
string addr = 2;
|
||||
}
|
||||
|
||||
message TableId {
|
||||
uint32 id = 1;
|
||||
}
|
||||
message TableId { uint32 id = 1; }
|
||||
|
||||
message TableName {
|
||||
string catalog_name = 1;
|
||||
|
||||
@@ -27,10 +27,8 @@ import "greptime/v1/ddl.proto";
|
||||
service Region { rpc Handle(RegionRequest) returns (RegionResponse); }
|
||||
|
||||
message RegionRequestHeader {
|
||||
// TraceID of request
|
||||
uint64 trace_id = 1;
|
||||
// SpanID of request
|
||||
uint64 span_id = 2;
|
||||
// Encoded trace_id & span_id, follow the w3c Trace Context https://www.w3.org/TR/trace-context/#header-name
|
||||
map<string, string> tracing_context = 5;
|
||||
// DB Name of request, tracking only
|
||||
string dbname = 3;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user