New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose the server-side metrics programmatically #4992
Comments
Hi @ikhoon, thank you for the detailed explanation.
So if http1 request is a request that requires aggregation and has not collected all the objects, can we consider the state of the request as |
Right. The link to |
@ikhoon ! Thank you for the confirmation. May I work on this issue ? |
ServerMetrics
armeria/core/src/main/java/com/linecorp/armeria/server/ConnectionLimitingHandler.java Line 50 in 9061e24
|
Sorry @seonwoo960000, this issue has been assigned to a participant for the internal sprint that you've experienced. 😆 |
@minwoox that's a great news. Hope to see a new contributor is added to Armeria 😄 |
Metrics related to the server, especially connection and request, are not exposed as API. If these values are exposed, users will be able to implement more sophisticated graceful shutdowns such as stopping the server when there are no pending requests.
Pending requests can increment the headers when they are received.
armeria/core/src/main/java/com/linecorp/armeria/server/Http2RequestDecoder.java
Lines 102 to 103 in 145bc0c
The value will be decreased when they are handed over to the service.
armeria/core/src/main/java/com/linecorp/armeria/server/HttpServerHandler.java
Lines 362 to 363 in 145bc0c
In the case of
ExchangeType.UNARY
orExchangeType.RESPONSE_STREAMING
, buffering is performed until the entire body is received, so it will be counted as pending requests untilEND_OF_STREAM
is received.The text was updated successfully, but these errors were encountered: