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

CosmosOperationCanceledException: Add CosmosDiagnostic info #1550

Merged
merged 8 commits into from
Jun 1, 2020

Conversation

j82w
Copy link
Contributor

@j82w j82w commented May 20, 2020

Pull Request Template

Description

This adds CosmosDiagnostic information to OperationCanceledException and TaskCanceledException . This is necessary to help troubleshoot operations that get cancelled. Currently all the diagnostics get lost and there is no way to access this information. This wraps the system types with a Cosmos type then it overrides the ToString() to add the CosmosDiagnostic information to it.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Closing issues

Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if such).

Assignee

Please add yourself as the assignee

Projects

Please add relevant projects so this issue can be properly tracked.

Copy link
Member

@kirankumarkolli kirankumarkolli left a comment

Choose a reason for hiding this comment

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

Clarification on the internal exception type throwing out.

@j82w j82w changed the title OperationCanceledException: Add CosmosDiagnostic info CosmosOperationCanceledException: Add CosmosDiagnostic info May 29, 2020
@j82w j82w merged commit f232485 into master Jun 1, 2020
@j82w j82w deleted the users/jawilley/diagnostics/operationCancelled branch June 1, 2020 11:07
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