Uh oh!
There was an error while loading. Please reload this page.
Include Exception Types at FailureDetails - #1237
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Chris Gillum (cgillum)
left a comment
There was a problem hiding this comment.
I suggested some small simplifications and refactoring.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This PR introduces support for including custom exception properties in
FailureDetails.Customers can register the interface
IExceptionPropertiesProviderat TaskhubWorker that specifies which exception types and properties should be included.IExceptionPropertiesProvideris a property onTaskHubWorker. We pass the provider to each dispatcher and then to theTaskContext. As a result, when orchestration or activity tasks are executed, use the provided implementation at TaskContext to generateFailureDetailsto include the specified exception properties.