@@ -6,24 +6,25 @@ import "sentry_protos/snuba/v1/request_common.proto";
6
6
import "sentry_protos/snuba/v1/trace_item_attribute.proto" ;
7
7
import "sentry_protos/snuba/v1/trace_item_filter.proto" ;
8
8
9
- message TraceColumn {
10
- enum Name {
11
- NAME_UNSPECIFIED = 0 ;
12
- NAME_TRACE_ID = 1 ;
13
- NAME_START_TIMESTAMP = 2 ;
14
- NAME_ROOT_SPAN_NAME = 3 ;
15
- NAME_TOTAL_SPAN_COUNT = 4 ;
16
- NAME_FILTERED_SPAN_COUNT = 5 ;
17
- NAME_ROOT_SPAN_DURATION_MS = 6 ;
18
- }
9
+ enum TraceAttributeKey {
10
+ TRACE_ATTRIBUTE_KEY_UNSPECIFIED = 0 ;
11
+ TRACE_ATTRIBUTE_KEY_TRACE_ID = 1 ;
12
+ TRACE_ATTRIBUTE_KEY_START_TIMESTAMP = 2 ;
13
+ TRACE_ATTRIBUTE_KEY_ROOT_SPAN_NAME = 3 ;
14
+ TRACE_ATTRIBUTE_KEY_TOTAL_SPAN_COUNT = 4 ;
15
+ TRACE_ATTRIBUTE_KEY_FILTERED_SPAN_COUNT = 5 ;
16
+ TRACE_ATTRIBUTE_KEY_ROOT_SPAN_DURATION_MS = 6 ;
17
+ }
19
18
20
- Name name = 1 ;
19
+ message TraceAttribute {
20
+ TraceAttributeKey key = 1 ;
21
21
AttributeKey.Type type = 2 ;
22
+ AttributeValue value = 3 ;
22
23
}
23
24
24
25
message GetTracesRequest {
25
26
message OrderBy {
26
- TraceColumn column = 1 ;
27
+ TraceAttributeKey key = 1 ;
27
28
bool descending = 2 ;
28
29
}
29
30
@@ -36,22 +37,17 @@ message GetTracesRequest {
36
37
PageToken page_token = 2 ;
37
38
uint32 limit = 3 ;
38
39
39
- repeated TraceItemFilter filters = 4 ;
40
+ repeated TraceFilter filters = 4 ;
40
41
repeated OrderBy order_by = 5 ;
41
- repeated TraceColumn columns = 6 ;
42
+ repeated TraceAttribute attributes = 6 ;
42
43
}
43
44
44
45
message GetTracesResponse {
45
46
message Trace {
46
- message Column {
47
- TraceColumn.Name name = 1 ;
48
- AttributeValue value = 2 ;
49
- }
50
-
51
- repeated Column columns = 1 ;
47
+ repeated TraceAttribute attributes = 1 ;
52
48
}
53
49
54
- repeated Trace traces = 1 ;
50
+ repeated Trace rows = 1 ;
55
51
56
52
PageToken page_token = 2 ;
57
53
ResponseMeta meta = 3 ;
0 commit comments