Skip to content

Conversation

@nytian
Copy link
Collaborator

@nytian nytian commented Sep 2, 2025

This PR introduces support for including custom exception properties in FailureDetails.

Customers can register the interface IExceptionPropertiesProvider at TaskhubWorker that specifies which exception types and properties should be included.

IExceptionPropertiesProvider is a property on TaskHubWorker. We pass the provider to each dispatcher and then to the TaskContext. As a result, when orchestration or activity tasks are executed, use the provided implementation at TaskContext to generate FailureDetails to include the specified exception properties.

@nytian nytian marked this pull request as draft September 29, 2025 23:17
@nytian nytian marked this pull request as ready for review September 30, 2025 01:29
@nytian nytian requested a review from cgillum September 30, 2025 15:52
@nytian nytian requested a review from sophiatev September 30, 2025 18:02
Copy link
Member

@cgillum cgillum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggested some small simplifications and refactoring.

@nytian nytian requested a review from cgillum October 1, 2025 16:39
@nytian nytian merged commit 04290b7 into main Oct 3, 2025
44 checks passed
@nytian nytian deleted the nytian/failure-details-excep branch October 3, 2025 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants