Is there a diagnostics flag in ktor so it logs whe...
# ktor
s
Is there a diagnostics flag in ktor so it logs where it spends it's time? background: we have a ktor app that does a GET request to a https-url available from the internet. If I start the application locally the request takes around 300ms. When I start the application within a docker container deployed in our internal network (connected to the internet via a proxy) the request takes up to 18s! When I do an equivalent GET request via curl over a console from the same docker container in our network the request takes around 100ms. Therefore it would be nice to know where Ktor spends it's time. (DNS resolution, TLS-connection, ...)
a
Is there a diagnostics flag in ktor so it logs where it spends it's time?
Unfortunately, there is no such flag in Ktor. You can collect various metrics about the server application using the metrics functionality.
s
I'll have a look, thanx 👍
hmm, unfortunately next to JVM metrics the HttpMetrics only meassures the execution time for each request (and the number of requests) but nothing more granular. 😥