Document that http.client.requests measure the entire HTTP exchange #34201
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
theme: observability
An issue related to observability and tracing
type: documentation
A documentation task
Milestone
Hello! 👋
Context
https://docs.spring.io/spring-boot/reference/actuator/metrics.html#actuator.metrics.supported.http-clients
By looking at the description of client metric, I wouldn't say, that
http.client.requests
metric includes things like eq: waiting for connection in connection pool.Sometimes i see Spikes for dashboards with this metric and i would like to know, that those SPIKE's may be visible due to requests waiting in queue or something else.
In order to have only request time, I need to measure request time on
RequestFactory
level.Example
Spring Boot Version -
3.4.1
I've prepared an small example, where I'm executing 4 requests with connection pool size equal to 2 and response from wiremock stub equal to 50ms. Here's the code: https://github.com/mateusz-nalepa/communication-errors/blob/main/src/test/kotlin/com/mateusz/nalepa/communicationerrors/timeout/queue/ConnectionRequestTimeoutWaitingInQueue.kt#L107
Here's the results:
So as you can see, those last two request contains of:
Proposal
I would like to add some tip for documentation like:
Question
What do you think?
Please let me know! 😄
The text was updated successfully, but these errors were encountered: