Azure / azure-sdk-for-java

This repository is for active development of the Azure SDK for Java. For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/java/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-java.
MIT License
2.34k stars 1.98k forks source link

[FEATURE REQ]: Evaluate improvements for `CosmosDiagnostics`. #41332

Open jeet1995 opened 2 months ago

jeet1995 commented 2 months ago

Tasks

github-actions[bot] commented 2 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @kushagraThapar @pjohari-ms @TheovanKraay.

Vrinda2311 commented 2 months ago

@jeet1995 @kushagraThapar Found below issues in CosmosDiagnostics.

  1. CosmosDiagnostics does not accurately represent the actual consistencyCfg in use, especially when overridden by dynamic request options. It only displays the client level consistency configuration.
  2. Similarly, CosmosDiagnostics does not accurately represent the actual e2ePolicyCfg in use, especially when overridden by dynamic request options. It only displays the client level e2ePolicy.
  3. Query/readMany operations do not honor excluded regions. Same is not even reflected in the diagnostics.
tvaron3 commented 2 months ago

One suggestion for the showing the options in the diagnostics is only showing the effective options, so which one were actually executed in the request regardless of client, dynamic, or request level.