Skip to content
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

feat/custom_buckets #4313

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

MarkJoyMa
Copy link
Collaborator

@MarkJoyMa MarkJoyMa commented Aug 11, 2024

rest server, zrpc client\server support custom settings Prometheus ReqDurBuckets

Copy link

codecov bot commented Aug 11, 2024

Codecov Report

Attention: Patch coverage is 97.56098% with 2 lines in your changes missing coverage. Please review.

Project coverage is 95.11%. Comparing base (8690859) to head (e61f784).
Report is 128 commits behind head on master.

Files Patch % Lines
zrpc/server.go 83.33% 1 Missing and 1 partial ⚠️
Additional details and impacted files
Files Coverage Δ
rest/engine.go 100.00% <100.00%> (ø)
rest/handler/prometheushandler.go 100.00% <100.00%> (ø)
rest/server.go 97.45% <100.00%> (+0.92%) ⬆️
zrpc/client.go 95.34% <ø> (+1.11%) ⬆️
zrpc/internal/client.go 100.00% <100.00%> (ø)
...ternal/clientinterceptors/prometheusinterceptor.go 100.00% <100.00%> (ø)
...ternal/serverinterceptors/prometheusinterceptor.go 100.00% <100.00%> (ø)
zrpc/server.go 88.63% <83.33%> (+3.82%) ⬆️

... and 250 files with indirect coverage changes

Copy link
Collaborator

@zhoushuguang zhoushuguang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+LGTM

@@ -219,6 +219,13 @@ func WithMaxBytes(maxBytes int64) RouteOption {
}
}

// WithMetricsReqDurBuckets returns a RouteOption to set metrics request duration buckets.
func WithMetricsReqDurBuckets(buckets []float64) RouteOption {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Define buckets for each route?

@sunshujie1990
Copy link

Any progress? I am waiting for this feature. @MarkJoyMa @kevwan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants