Open
Description
Binding Type
No response
Expected Behavior
I am looking for a place to centralize the exception handling. For example, to log all exceptions with the invocation id and a correlation ID.
As I cannot use a base class in azure functions (as they are functions :) ), I suppose that I can use the extensions, where I can implement behaviors for an event.
I wished I could use post_invocation_app_level
but then I realize that this method will not be called if the function fails
It would be useful to have a method like "exception_invocation_app_level" for the application level extensions. The method is called once an exception is raised in the function execution. The function context, invocation args and the raised exception are passed to the methode.
Relevant sample code snipped
No response
Additional Information
No response