V 1.0.0 Alpha 10
Pre-release
Pre-release
SemVer Breaking
Histogram backed timer (#46, @avolokhov)
NOTE: This is a breaking change. PrometheusClient
no longer conforms to MetricsFactory
. Instead of bootstrapping swift-metrics with an instance of PrometheusClient
directly, it has to be wrapped in a PrometheusMetricsFactory
// Before
let myProm = PrometheusClient()
MetricsSystem.bootstrap(myProm)
// After
let myProm = PrometheusClient()
MetricsSystem.bootstrap(PrometheusMetricsFactory(client: myProm))
With this comes the ability to choose wether swift-metrics' Timer
should be backed by a Prometheus Histogram
or Summary
by passing configuration to PrometheusMetricsFactory