Azure-sdk-for-net: [FEATURE REQ] CloudException.ToString() could be enhanced to improve debuggability

Created on 14 Oct 2020  路  7Comments  路  Source: Azure/azure-sdk-for-net

Library or service name.
Azure.Storage.Rest

Is your feature request related to a problem? Please describe.
CloudException contains a lot of detailed information and in many cases it makes sense to log this detailed information server side for debugging. However, the ToString() method drops much of the information such as the Details and AdditionalInfo fields, as well as any internal exceptions. I propose amending this method to collate more detailed, useful information.

I've got a local file attempting to do something similar, albeit external to the class (and therefore more cumbersome to use). I'm willing to merge this into to the ToString() method if you agree it would be of use.

Client Service Attention Storage customer-reported needs-team-attention question

All 7 comments

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage.

Thank you for your feedback. Tagging and routing to the team best able to assist.

Could you clarify which library you are using? As far as I know, we don't have a Azure.Storage.Rest.

Apologies for the confusion. It looks like the library is Microsoft.Rest.ClientRuntime.Azure as the class in question is CloudException.

Oh I think this might be something from V11 and below.

I recommend moving to Azure.Storage.Blobs, v11 and below is on a deprecation path.

Thanks Sean. We didn't realise that was a deprecated version. I've now filed a bug against our project to track upgrading us to the latest versions.

Feel free to close off this feature request, as I believe it doesn't make sense given that the library is deprecated.

Was this page helpful?
0 / 5 - 0 ratings