forked from vectordotdev/vector
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdd_trace.proto
More file actions
63 lines (57 loc) · 1.32 KB
/
dd_trace.proto
File metadata and controls
63 lines (57 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
syntax = "proto3";
package dd_trace;
// TracePayload can represent either an older payload or a new one
message TracePayload {
string hostName = 1;
string env = 2;
// Older payload fields
repeated APITrace traces = 3;
repeated Span transactions = 4;
// Newer payload fields
repeated TracerPayload tracerPayloads = 5;
map<string, string> tags = 6;
string agentVersion = 7;
double targetTPS = 8;
double errorTPS = 9;
}
message APITrace {
uint64 traceID = 1;
repeated Span spans = 2;
int64 startTime = 6;
int64 endTime = 7;
}
message TracerPayload {
string containerID = 1;
string languageName = 2;
string languageVersion = 3;
string tracerVersion = 4;
string runtimeID = 5;
repeated TraceChunk chunks = 6;
map<string, string> tags = 7;
string env = 8;
string hostname = 9;
string appVersion = 10;
}
message TraceChunk {
int32 priority = 1;
string origin = 2;
repeated Span spans = 3;
map<string, string> tags = 4;
bool droppedTrace = 5;
}
// The Span construct is the same in all circumstances
message Span {
string service = 1;
string name = 2;
string resource = 3;
uint64 traceID = 4;
uint64 spanID = 5;
uint64 parentID = 6;
int64 start = 7;
int64 duration = 8;
int32 error = 9;
map<string, string> meta = 10;
map<string, double> metrics = 11;
string type = 12;
map<string, bytes> meta_struct = 13;
}