You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon incident investigation, we saw that the logged error try-catch wraps a lot of code, including:
Prisma database call (to retrieve template)
Redis call (to retrieve hCaptcha feature flag)
hCaptcha API call
Invoking the Submission Lambda
Sending notifications
Extended outages
We might want to refactor the submit function and improving the granularity of logging and messages for submit to help diagnose problems, that are all wrapped in same try…catch and provide more specific and narrow logging messages for each of these.