mirror of
https://github.com/zulip/zulip.git
synced 2025-10-30 11:33:51 +00:00
sentry: Increase shutdown_timeout from 2s to 10s.
This increases the possible maximum wait time to send exceptions during shutdown. The larger value makes it possible to send larger exceptions, and weather larger network hiccups, during shutdown. In instances where a service is crash-looping, it is already not serving requests reliably, and better ensuring those exceptions are captured is of significant value.
This commit is contained in:
committed by
Tim Abbott
parent
c8b00941f2
commit
30968e8b5a
@@ -68,6 +68,10 @@ def setup_sentry(dsn: Optional[str], environment: str) -> None:
|
||||
SqlalchemyIntegration(),
|
||||
],
|
||||
before_send=add_context,
|
||||
# Increase possible max wait to send exceptions during
|
||||
# shutdown, from 2 to 10; potentially-large exceptions are of
|
||||
# value to catch during shutdown.
|
||||
shutdown_timeout=10,
|
||||
# Because we strip the email/username from the Sentry data
|
||||
# above, the effect of this flag is that the requests/users
|
||||
# involved in exceptions will be identified in Sentry only by
|
||||
|
||||
Reference in New Issue
Block a user