Skip to content

V 1.0.0 Alpha 10

Pre-release
Pre-release
Compare
Choose a tag to compare
@MrLotU MrLotU released this 30 Apr 09:55
· 30 commits to master since this release
a5671ba

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