bugsnag / bugsnag-python

Official BugSnag error monitoring and error reporting for django, flask, tornado and other python apps.
https://docs.bugsnag.com/platforms/python/
MIT License
86 stars 42 forks source link

Add support for post-delivery callbacks #375

Closed imjoehaines closed 6 months ago

imjoehaines commented 6 months ago

Goal

Adds a new post_delivery_callback setting to the options in the base Delivery class. If a callback is provided it is then called after delivery has finished

This will allow other parts of bugsnag to determine when delivery has finished, which is currently not possible for asynchronous requests

Users that have implemented their own delivery system will have to ensure the callback is called in order to fulfil the delivery contract (this will be called out in the docs)