swift-server / swift-prometheus

Prometheus client library for Swift
https://swiftpackageindex.com/swift-server/swift-prometheus
Apache License 2.0
142 stars 30 forks source link

Use defaultRecorderBuckets for Histogram #75

Open Sherlouk opened 2 years ago

Sherlouk commented 2 years ago

Checklist

I've not updated tests (mostly because I entirely made this change on GitHub) but we totally should to prevent regression. Created this branch so I can do a quick validation by pointing my project to this branch.

Motivation and Context

Fixes #74

Description

Pass the user-provided default for the buckets to the create histogram function. This value defaults to the same value which the function defaults to - so unless the user has overridden the default buckets value, this change will not impact existing code.