There doesn't seem to be a metric for CountAsync and MaxAsync operations of Cosmos DB. Does anyone know a better way to log Request Charge for these operations?
Asked
Active
Viewed 107 times
1 Answers
0
You should be able to use the following code snippet for each of those operations:
System.out.println(connection.getHeaderField("x-ms-request-charge"));
Please take a look at the Query Documents - Responses for a list of headers available.

Mike Ubezzi
- 1,007
- 6
- 8