spring-data-cosmosdb icon indicating copy to clipboard operation
spring-data-cosmosdb copied to clipboard

Allow selective logging for client diagnostics

Open caroysMSFT opened this issue 2 years ago • 1 comments

The current client diagnostics string leads to a huge amount of log volume on the client side.

Customers would like some ability to selectively log client metrics, so that they can keep the log volume down. Ingestion costs are usually what causes high log costs in things like Log Analytics and Splunk.

There's a decent example in the .Net SDK of how to only log the diagnostic string when there's a problem - is there enough functionality in the Spring/Java clients to take a similar approach?

https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.cosmos.cosmosdiagnostics.tostring?view=azure-dotnet#examples

caroysMSFT avatar Jun 23 '22 18:06 caroysMSFT

@caroysMSFT - the same can be applied for spring / java SDKs as well - where you can use the getDuration() API from the response diagnostics. Also, this repository is not active anymore, and the github issues are not being monitored frequently. Please create issues on new github repository.

kushagraThapar avatar Jun 27 '22 03:06 kushagraThapar