Commit 85211d6
authored
Fixed email analytics timing log metrics (#27403)
no ref
`apiPollingTimeMs` was wrapping the entire `provider.fetchLatest()` call, which executes `processBatch` (processing + intermediate aggregation) inside Mailgun's pagination loop. This meant API time included processing and aggregation time, causing reported percentages to exceed 100%.
Processing and aggregation timers were already measured independently and correctly; only the API timer was wrong.1 parent 0599597 commit 85211d6
1 file changed
Lines changed: 8 additions & 5 deletions
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
323 | | - | |
| 323 | + | |
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
389 | | - | |
| 389 | + | |
390 | 390 | | |
391 | | - | |
| 391 | + | |
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| |||
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
412 | | - | |
413 | 412 | | |
414 | | - | |
415 | 413 | | |
416 | 414 | | |
417 | 415 | | |
| |||
464 | 462 | | |
465 | 463 | | |
466 | 464 | | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
467 | 470 | | |
468 | 471 | | |
469 | 472 | | |
| |||
0 commit comments