File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ type Statistics struct {
57
57
TotalAllocated int64 `json:"total_allocated"`
58
58
59
59
// Profiles holds the profiles for each transport (source/transformation) in this query.
60
- Profiles []TransportProfile
60
+ Profiles []TransportProfile `json:"profiles"`
61
61
62
62
// RuntimeErrors contains error messages that happened during the execution of the query.
63
63
RuntimeErrors []string `json:"runtime_errors"`
@@ -113,25 +113,25 @@ func (s *Statistics) Merge(other Statistics) {
113
113
type TransportProfile struct {
114
114
// NodeType holds the node type which is a string representation
115
115
// of the underlying transformation.
116
- NodeType string
116
+ NodeType string `json:"node_type"`
117
117
118
118
// Label holds the plan node label.
119
- Label string
119
+ Label string `json:"label"`
120
120
121
121
// Count holds the number of spans in this profile.
122
- Count int64
122
+ Count int64 `json:"count"`
123
123
124
124
// Min holds the minimum span time of this profile.
125
- Min int64
125
+ Min int64 `json:"min"`
126
126
127
127
// Max holds the maximum span time of this profile.
128
- Max int64
128
+ Max int64 `json:"max"`
129
129
130
130
// Sum holds the sum of all span times for this profile.
131
- Sum int64
131
+ Sum int64 `json:"sum"`
132
132
133
133
// Mean is the mean span time of this profile.
134
- Mean float64
134
+ Mean float64 `json:"mean"`
135
135
}
136
136
137
137
// StartSpan will start a profile span to be recorded.
You can’t perform that action at this time.
0 commit comments