Commit 624556c
fix(metrics): add replication task latency histogram (#7684)
**What changed?**
Added an exponential histogram for replication task latency in
TaskAckManager alongside the existing timer (task_latency_ns)
**Why?**
Replication task latency was tracked only via timers, which limits
distribution analysis. Adding a histogram retains the existing timer
while enabling bucketed/percentile insights in M3/Grafana without
changing processing logic.
**How did you test it?**
Verified metric emission in uMonitor.
**Potential risks**
Low risk: additional metrics emission on the replication ack path;
minimal overhead.
**Release notes**
Replication now emits task_latency_ns histogram for replication task
latency. CadenceCDNC-17610
**Documentation Changes**
N/A
---------
Signed-off-by: Diana Zawadzki <dzawa@live.de>
Signed-off-by: zawadzki <zawadzki@uber.com>
Co-authored-by: zawadzki <zawadzki@uber.com>1 parent 1d9e012 commit 624556c
File tree
3 files changed
+43
-5
lines changed- common/metrics
- service/history/replication
3 files changed
+43
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| |||
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
71 | 83 | | |
72 | 84 | | |
73 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2484 | 2484 | | |
2485 | 2485 | | |
2486 | 2486 | | |
| 2487 | + | |
2487 | 2488 | | |
2488 | 2489 | | |
2489 | 2490 | | |
| |||
2739 | 2740 | | |
2740 | 2741 | | |
2741 | 2742 | | |
| 2743 | + | |
2742 | 2744 | | |
2743 | 2745 | | |
| 2746 | + | |
2744 | 2747 | | |
| 2748 | + | |
2745 | 2749 | | |
| 2750 | + | |
2746 | 2751 | | |
2747 | 2752 | | |
2748 | 2753 | | |
| |||
3326 | 3331 | | |
3327 | 3332 | | |
3328 | 3333 | | |
| 3334 | + | |
3329 | 3335 | | |
3330 | 3336 | | |
3331 | 3337 | | |
| |||
3568 | 3574 | | |
3569 | 3575 | | |
3570 | 3576 | | |
| 3577 | + | |
3571 | 3578 | | |
3572 | 3579 | | |
| 3580 | + | |
3573 | 3581 | | |
| 3582 | + | |
3574 | 3583 | | |
| 3584 | + | |
3575 | 3585 | | |
3576 | 3586 | | |
3577 | 3587 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
134 | 135 | | |
135 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
136 | 140 | | |
137 | 141 | | |
138 | 142 | | |
| |||
141 | 145 | | |
142 | 146 | | |
143 | 147 | | |
144 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
145 | 151 | | |
146 | 152 | | |
147 | 153 | | |
| |||
162 | 168 | | |
163 | 169 | | |
164 | 170 | | |
165 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
166 | 174 | | |
167 | 175 | | |
168 | 176 | | |
| |||
194 | 202 | | |
195 | 203 | | |
196 | 204 | | |
197 | | - | |
198 | | - | |
199 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
200 | 216 | | |
201 | 217 | | |
202 | 218 | | |
| |||
0 commit comments