feat: add QueryContext to RegionRequestHeader (#156)

This commit is contained in:
Kelvin Wu
2024-05-06 12:49:26 +08:00
committed by GitHub
parent f699e240f7
commit a191edaea1
4 changed files with 2733 additions and 504 deletions
+9 -2
View File
@@ -26,14 +26,21 @@ import "greptime/v1/ddl.proto";
service Region { rpc Handle(RegionRequest) returns (RegionResponse); }
message QueryContext {
string current_catalog = 1;
string current_schema = 2;
string timezone = 4;
map<string, string> extensions = 5;
}
message RegionRequestHeader {
// 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;
// The `timezone` for the request
string timezone = 4;
// The contextual information of the query
QueryContext query_context = 6;
}
message RegionRequest {