0

we noticed that some of our requests to Azure are taking too long.

They told us that they don't appear to receive a request until much after we start the request. Given that, it would be good for us to be able to log how long it took to establish a connection to the remote host.

We are using javax.ws.rs.client.Client.

Does anyone know if there is a way to enable debug logging which would capture this metric or if we can get the metrics in some other way?

Aleksandar
  • 23
  • 3

1 Answers1

0

You can add interceptors in your request which will log the request and the response to the console and the time taken in that request will be logged in those requests. how to add interceptors you can find the given post on stack over flow to see how you can do that.

Dhananjay Gupta
  • 316
  • 2
  • 11