May 23, 2021
Thanks! An unhandled error in a firebase function ends execution, so it is possible that the function would be terminated before the error is reported to Sentry & you wouldn't see it show up in sentry (although it should still show up in google cloud logging). Flushing makes sure that the request to sentry completes before the function is terminated.