Closed sourabh1007 closed 2 years ago
Client requested for request charge API for CosmosException (ref. Azure/azure-sdk-for-java#13488)
This is already done in the .NET SDK: https://github.com/Azure/azure-cosmos-dotnet-v3/blob/f16153b98627890f3328b3c4b3d2d3c2265f22cf/Microsoft.Azure.Cosmos/src/Resource/CosmosExceptions/CosmosException.cs#L97
Can you provide an example with values for the information being sent back?
HostEnvInfo // What information is included in this? AcceleratedNetworking // How can this be detected? GreaterThan1Kb // Is this a percentage? Count? Bool? Is it for both request and responses? Consistency // Is the SDK consistency? Is it null if they just use the account default?
// Is this all for latency? MetricsName UnitName Count Mean Min Max Percentile50 Percentile 90 Percentile 95 Percentile 99 Percentile 999 JsonColumn
I have updated the schema in the main issue along with sample JSON.
Few clarifications on the wire format
Eventually do client expected to post metrics to the current one in PreferredList configured?
Is your feature request related to a problem? Please describe. Client requested for request charge API for CosmosException (ref. https://github.com/Azure/azure-sdk-for-java/issues/13488)
Describe the solution you'd like Develop a telemetry module which collects and save certain kind of metrics periodically. It is already developed for Java SDK (ref. https://github.com/Azure/azure-sdk-for-java/pull/16822) and need to be implemented for .net SDK also.
Describe alternatives you've considered There is no alternative for this.
Additional context Default client telemetry capturing is off (User can turn on via builder API)
It contains below aggregations
SDK will collect and store below information
JSON would look like this :