Commit 76474ba
committed
fix: Propagate RedisTimeoutError from rate limit functions
Let RedisTimeoutError propagate from rate_limit_start_request and
rate_limit_finish_request instead of catching it in the broad
except Exception handler and logging it as an error. The base
AllocationPolicy class already handles this exception by incrementing
a fail_open metric and continuing without error reporting.
Co-Authored-By: Claude <noreply@anthropic.com>
Agent transcript: https://claudescope.sentry.dev/share/wHR4-EZOiDwQJ-IiEz2-Vn3usNpLCr_rKh1D1NH3CY81 parent d7b0f25 commit 76474ba
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
275 | 277 | | |
276 | 278 | | |
277 | 279 | | |
| 280 | + | |
| 281 | + | |
278 | 282 | | |
279 | 283 | | |
280 | 284 | | |
| |||
311 | 315 | | |
312 | 316 | | |
313 | 317 | | |
| 318 | + | |
| 319 | + | |
314 | 320 | | |
315 | 321 | | |
316 | 322 | | |
| |||
0 commit comments