@@ -14,7 +14,6 @@ type Metrics struct {
14
14
TimeMetrics map [string ]* TimeStats `json:",omitempty"`
15
15
NumberMetrics map [string ]* NumberStats `json:",omitempty"`
16
16
BoolMetrics map [string ]* BoolStats `json:",omitempty"`
17
- // TODO(Yash): Add another metrics for metadata.
18
17
}
19
18
20
19
// TimeStats are microsecond-based metrics like Query_time and Lock_time.
@@ -27,8 +26,6 @@ type TimeStats struct {
27
26
P95 float64 `json:",omitempty"` // 95th percentile
28
27
Max float64 `json:",omitempty"`
29
28
outlierSum float64
30
- // TODO(Yash) timeTakeToTraceId as map. Move this to Metrics class or create another struct parallel to TImeMetrics, NumberMetrics, BoolMetrics
31
- // traceIdOfMaxSql
32
29
}
33
30
34
31
// NumberStats are integer-based metrics like Rows_sent and Merge_passes.
@@ -75,7 +72,6 @@ func (m *Metrics) AddEvent(e Event, outlier bool) {
75
72
stats .Sum += val
76
73
}
77
74
stats .vals = append (stats .vals , float64 (val ))
78
- // TODO(Yash): Add traceIdProto to the map defined in TimeMetrics
79
75
}
80
76
81
77
for metric , val := range e .NumberMetrics {
@@ -137,7 +133,6 @@ func (m *Metrics) Finalize(rateLimit uint) {
137
133
138
134
// Update sum last because avg ^ needs the original value.
139
135
s .Sum = (s .Sum * float64 (rateLimit )) + s .outlierSum
140
- //TODO(Yash): Do timeTakenToTraceIdProto[s.Max] to know the traceId and populate traceIdOfMaxSql
141
136
}
142
137
143
138
for _ , s := range m .NumberMetrics {
0 commit comments