Commit 7e243ed
committed
fix(core): Emit
`Client.flush()` short-circuited before emitting the `flush` event when
the client had no transport (e.g. no DSN was configured), leaving the
weight-based flushers for logs and metrics with idle `setTimeout`
handles that never resolved. Emit `flush` unconditionally so the
weight-based flusher listeners drain their buffers and clear the timers
on every `flush()` call.flush event in Client.flush() when client has no transport1 parent 86dc30a commit 7e243ed
3 files changed
Lines changed: 54 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
427 | 433 | | |
428 | 434 | | |
429 | 435 | | |
430 | 436 | | |
431 | | - | |
432 | | - | |
433 | 437 | | |
434 | 438 | | |
435 | 439 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3115 | 3115 | | |
3116 | 3116 | | |
3117 | 3117 | | |
| 3118 | + | |
| 3119 | + | |
| 3120 | + | |
| 3121 | + | |
| 3122 | + | |
| 3123 | + | |
| 3124 | + | |
| 3125 | + | |
| 3126 | + | |
| 3127 | + | |
| 3128 | + | |
| 3129 | + | |
| 3130 | + | |
| 3131 | + | |
| 3132 | + | |
| 3133 | + | |
| 3134 | + | |
| 3135 | + | |
| 3136 | + | |
| 3137 | + | |
| 3138 | + | |
| 3139 | + | |
| 3140 | + | |
3118 | 3141 | | |
3119 | 3142 | | |
3120 | 3143 | | |
| |||
3201 | 3224 | | |
3202 | 3225 | | |
3203 | 3226 | | |
| 3227 | + | |
| 3228 | + | |
| 3229 | + | |
| 3230 | + | |
| 3231 | + | |
| 3232 | + | |
| 3233 | + | |
| 3234 | + | |
| 3235 | + | |
| 3236 | + | |
| 3237 | + | |
| 3238 | + | |
| 3239 | + | |
| 3240 | + | |
| 3241 | + | |
| 3242 | + | |
| 3243 | + | |
| 3244 | + | |
| 3245 | + | |
| 3246 | + | |
| 3247 | + | |
3204 | 3248 | | |
3205 | 3249 | | |
3206 | 3250 | | |
| |||
0 commit comments