Commit 6d51442
fix(tasks): drop StatsD active gauge, keep concurrency OTel-only
A process-local gauge is wrong under multiple workers: DogStatsD gauges are
last-write-wins per flush, so N workers emitting their own counts make the
metric flap between workers instead of summing to true concurrency. Remove the
StatsD active gauge and its bookkeeping; the OTel UpDownCounter already sums
correctly across per-instance series and remains the sole concurrency source.
The additive StatsD emits (opened/closed counters, duration, stall) aggregate
correctly across workers and are unchanged.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 5a3541a commit 6d51442
2 files changed
Lines changed: 12 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | 65 | | |
74 | 66 | | |
75 | 67 | | |
| |||
119 | 111 | | |
120 | 112 | | |
121 | 113 | | |
122 | | - | |
123 | 114 | | |
124 | 115 | | |
125 | 116 | | |
| |||
130 | 121 | | |
131 | 122 | | |
132 | 123 | | |
133 | | - | |
134 | | - | |
135 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
136 | 129 | | |
137 | 130 | | |
138 | 131 | | |
| |||
149 | 142 | | |
150 | 143 | | |
151 | 144 | | |
152 | | - | |
153 | 145 | | |
154 | 146 | | |
155 | 147 | | |
| |||
164 | 156 | | |
165 | 157 | | |
166 | 158 | | |
167 | | - | |
168 | | - | |
169 | | - | |
| 159 | + | |
| 160 | + | |
170 | 161 | | |
171 | 162 | | |
172 | 163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
| |||
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
65 | | - | |
66 | 64 | | |
67 | 65 | | |
68 | 66 | | |
69 | 67 | | |
70 | | - | |
71 | | - | |
| 68 | + | |
| 69 | + | |
72 | 70 | | |
73 | | - | |
| 71 | + | |
74 | 72 | | |
75 | 73 | | |
76 | 74 | | |
| |||
81 | 79 | | |
82 | 80 | | |
83 | 81 | | |
84 | | - | |
85 | 82 | | |
86 | 83 | | |
87 | 84 | | |
| |||
94 | 91 | | |
95 | 92 | | |
96 | 93 | | |
97 | | - | |
98 | | - | |
| 94 | + | |
| 95 | + | |
99 | 96 | | |
100 | 97 | | |
101 | 98 | | |
| |||
0 commit comments