1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-24 22:26:54 +02:00

Trace type is now being recorded (#1188)

This commit is contained in:
Janos Dobronszki
2020-02-12 11:57:17 +01:00
committed by GitHub
parent 79ad1e6fe3
commit d76baf59de
5 changed files with 117 additions and 51 deletions

View File

@ -57,12 +57,12 @@ message LogRequest {
// Record is service log record
message Record {
// timestamp of log record
int64 timestamp = 1;
// record metadata
map<string,string> metadata = 2;
// message
string message = 3;
// timestamp of log record
int64 timestamp = 1;
// record metadata
map<string,string> metadata = 2;
// message
string message = 3;
}
message TraceRequest {
@ -75,6 +75,11 @@ message TraceResponse {
}
enum SpanType {
INBOUND = 0;
OUTBOUND = 1;
}
message Span {
// the trace id
string trace = 1;
@ -90,4 +95,5 @@ message Span {
uint64 duration = 6;
// associated metadata
map<string,string> metadata = 7;
SpanType type = 8;
}