Turn off CosmosDiagnostics when logging CosmosException #33589
Labels
Client
This issue points to a problem in the data-plane of the library.
Cosmos
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Query/Question
Currently, when our process encounters a CosmosException, massive amounts of useless message gets printed. See attached txt file.
openai-cosmosexception.txt
For example, I only want the contents of the
innerErrorMessage
However, tons of CosmosDiagnostics messages get included in
CosmosException.java#getMessage()
:Is there a way to exclude
fillCosmosDiagnostics()
when logging the exception? It's causing problems in our logging system because it can't handle these massive logs.Why is this not a Bug or a feature Request?
This is not a bug because it's an intentional design. It could be a feature request if turning off CosmosDiagnostics isn't already supported.
Setup (please complete the following information if applicable):
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: