-
Notifications
You must be signed in to change notification settings - Fork 3k
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
enhance: Use stats Handler to record request/response size metrics #36107
enhance: Use stats Handler to record request/response size metrics #36107
Conversation
Related to milvus-io#36102 This PR use newly added `grpcSizeStatsHandler` to reduce calling `proto.Size` since the request & response size info is recorded by grpc framework. Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: congqixia The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #36107 +/- ##
==========================================
- Coverage 81.62% 72.63% -8.99%
==========================================
Files 1267 1268 +1
Lines 150911 151034 +123
==========================================
- Hits 123182 109706 -13476
- Misses 22846 36434 +13588
- Partials 4883 4894 +11
|
/lgtm |
…ilvus-io#36107) Related to milvus-io#36102 This PR use newly added `grpcSizeStatsHandler` to reduce calling `proto.Size` since the request & response size info is recorded by grpc framework. Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
…ilvus-io#36107) Related to milvus-io#36102 This PR use newly added `grpcSizeStatsHandler` to reduce calling `proto.Size` since the request & response size info is recorded by grpc framework. Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
Previous label case broken by milvus-io#36107, this PR make all inbound label using label constants from metrics package. Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
Previous label case broken by #36107, this PR make all inbound label using label constants from metrics package. Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
Previous label case broken by milvus-io#36107, this PR make all inbound label using label constants from metrics package. Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
Related to milvus-io#36102 Previous PR milvus-io#36107 add grpc inteceptor to observe rpc stats. Using same strategy, this pr add gin middleware to observer restful v2 rpc stats. Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
Related to milvus-io#36102 Previous PR milvus-io#36107 add grpc inteceptor to observe rpc stats. Using same strategy, this pr add gin middleware to observer restful v2 rpc stats. Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
…s-io#37223) Related to milvus-io#36102 Previous PR milvus-io#36107 add grpc inteceptor to observe rpc stats. Using same strategy, this pr add gin middleware to observer restful v2 rpc stats. Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
Related to #36102
This PR use newly added
grpcSizeStatsHandler
to reduce callingproto.Size
since the request & response size info is recorded by grpc framework.