If your service has a server::handlers::InspectRequests configured, then you may inspect the active requests. The feature is useful for investigating a broken production service to find request parameters that lead to handle malfunction.
server::handlers::InspectRequests provides the following REST API:
Note that the server::handlers::InspectRequests handler lives at the separate components.server.listener-monitor
address, so you have to request them using the listener-monitor
credentials. See Production configs and best practices for more info on configuration and ideas on how to change the /service/inspect-requests
handle path.
In this example there is one in-flight request that is being executed for more than 3 seconds.
$ curl http://localhost:8085/internal/inspect-requests | jq
In this example there are multiple in-flight request that actually have no body.
$ curl http://localhost:8085/internal/inspect-requests?body=1 | jq