feat: add mailbox message header (#310)

Signed-off-by: WenyXu <wenymedia@gmail.com>
This commit is contained in:
Weny Xu
2026-02-26 18:58:21 +08:00
committed by GitHub
parent 030f1e48ab
commit 19a5104851
6 changed files with 2029 additions and 126 deletions
+8
View File
@@ -180,7 +180,15 @@ message AskLeaderResponse {
Peer leader = 2;
}
message MailboxMessageHeader {
// Encoded trace_id & span_id, follow the w3c Trace Context
// https://www.w3.org/TR/trace-context/#header-name
map<string, string> tracing_context = 1;
}
message MailboxMessage {
/// The header of the mailbox message.
MailboxMessageHeader header = 64;
// The id is used to associate request and response.
uint64 id = 1;
// The following information plays a bigger role in making messages traceable