1

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?

karel
  • 5,489
  • 46
  • 45
  • 50

1 Answers1

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