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

Shorten default list of buckets #19

Merged
merged 3 commits into from
Jun 5, 2019

Conversation

simonsargeant
Copy link
Contributor

From 13 time series to 7 generated in a histogram as a "sensible default" with network requests in mind. These can be overwritten by any metric definition.

@colega colega self-requested a review June 5, 2019 14:57
@@ -121,7 +121,7 @@ func bucketsFromTag(tag reflect.StructTag) ([]float64, error) {

// DefaultBuckets provides a list of buckets you can use when you don't know what to use yet.
func DefaultBuckets() []float64 {
return []float64{.005, .01, .025, .05, .1, .25, .5, 1, 2.5, 5, 10, 25}
return []float64{.05, .1, .5, 1, 5, 10}

Choose a reason for hiding this comment

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

I'd keep the 0.25 one

Copy link
Contributor

@colega colega left a comment

Choose a reason for hiding this comment

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

Please update the CHANGELOG.md

@simonsargeant simonsargeant merged commit b6bf805 into master Jun 5, 2019
@simonsargeant simonsargeant deleted the use-shorter-list-of-buckets-as-default branch June 5, 2019 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants