Sentry is an open source monitoring project as well as a service that can be used to report errors in Python web apps.
Sentry is a monitoring service that you can set up to host yourself or used as a service to catch and report errors in your Python web applications.
Sentry's official Python docs explain how to integrate the SDK into an application to send events to either your own server or the hosted service.
Sentry For Data: Error Monitoring with PySpark shows an integration between the PySpark data analysis tool and Sentry for handling any issues.