Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacing System.AggregateException with custom aggregate exception #120

Merged
merged 5 commits into from
Jul 9, 2021

Conversation

rogordon01
Copy link
Contributor

@rogordon01 rogordon01 commented Jul 9, 2021

When a System.AggregateException contains more than 10 inner exceptions, the AI Telemetry Pipeline converts this into a custom, internal exception (InnerExceptionCountExceededException). This results in the following:

  • The code truncates the inner exceptions to 10
  • A bug within the logic prevents the Message attribute of the surrounding ExceptionTelemety object from getting populated.

This results in no actionable message being shown to a developer/customer. Even if there was one, it would be constructed with only the first 10 exceptions.

This PR creates a new Aggregate Exception which will not be converted by the current AI logic above. This will result in the expected aggregate message being displayed to the customer.

@rogordon01 rogordon01 requested a review from a team as a code owner July 9, 2021 04:56
@rogordon01 rogordon01 requested review from dustinburson and namalu July 9, 2021 04:57
@rogordon01
Copy link
Contributor Author

Will also file the discovered bug with the AI Telemetry team

@rogordon01 rogordon01 merged commit 2faecf2 into master Jul 9, 2021
@rogordon01 rogordon01 deleted the personal/rogordon/createCustomAggregateException branch July 9, 2021 22:31
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