feat: pass tracing context in proto (#120)

* feat: pass tracing context in proto

* fix: run make
This commit is contained in:
WU Jingdi
2023-11-15 19:26:13 +08:00
committed by GitHub
parent 7eb2e78be7
commit 25429306d0
15 changed files with 2327 additions and 1045 deletions
+3 -4
View File
@@ -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; }
+4 -3
View File
@@ -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;
+2 -4
View File
@@ -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;
}