Commit 285253d
authored
feat(observability): wire unused MyAudio Prometheus metrics (#2232)
* feat(observability): wire unused MyAudio Prometheus metrics to call sites
Connect 4 previously-defined but uncalled metrics to their logical
call sites in the audio processing pipeline:
- RecordAudioInferenceDuration: records BirdNET inference elapsed time
- RecordBirdNETResults: records detection result count per inference
- RecordAudioQueueOperation: tracks enqueue success/drop on results queue
- RecordAudioDataSize: tracks cumulative bytes written to analysis buffer
* fix(observability): measure only Predict() latency for inference duration metric
Separate inference timing from end-to-end processing time so
RecordAudioInferenceDuration accurately reflects only bn.Predict()
latency. Also record inference duration on failed predictions.
---------
Co-authored-by: tphakala <tphakala@users.noreply.github.com>1 parent 61e224b commit 285253d
2 files changed
+23
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
| 390 | + | |
390 | 391 | | |
391 | 392 | | |
392 | 393 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
155 | 156 | | |
| 157 | + | |
156 | 158 | | |
157 | 159 | | |
158 | 160 | | |
159 | 161 | | |
160 | 162 | | |
161 | 163 | | |
162 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
163 | 173 | | |
164 | 174 | | |
165 | 175 | | |
166 | 176 | | |
167 | | - | |
| 177 | + | |
168 | 178 | | |
169 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
170 | 185 | | |
171 | 186 | | |
172 | 187 | | |
| |||
264 | 279 | | |
265 | 280 | | |
266 | 281 | | |
267 | | - | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
268 | 285 | | |
269 | 286 | | |
270 | 287 | | |
271 | | - | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
272 | 291 | | |
273 | 292 | | |
274 | 293 | | |
| |||
0 commit comments