Highlights
The 2.0 release brings new and improved APIs which provide a more correct user-experience and overall higher performance.
This release is a major version that contains breaking changes compared to the 1.x versions:
PrometheusClient
has been renamed toPrometheusCollectorRegistry
- Most method names on
PrometheusCollectorRegistry
have been changed as wellcreateMetric
has been renamed tomakeMetric
in most cases
- Most method names on
- Summaries are no longer supported
- The
PromMetric
protocol has been removed - The Collector types are no longer prefixed with
Prom
Please refer to our [documentation] hosted on the Swift Package Index for more details regarding the new API.
What's Changed (since 1.x series)
- Add package index config file, so docs are generated by @ktoso in #85
- Remove FUNDING.yml by @fabianfett in #88
- Remove Package.resolved from repo by @fabianfett in #87
- Remove XCTestManifest & LinuxMain by @fabianfett in #89
- Prepare Dockerfiles and scripts for swift-server CI by @fabianfett in #90
- Remove GitHub actions CI by @fabianfett in #91
- New Version 2.0 API by @fabianfett in #92
- Remove .jazzy.yaml by @fabianfett in #96
- Rename .spi.yaml to .spi.yml by @finestructure in #99
- Gauge implements MeterHandler by @fabianfett in #97
- Don't require to pass a registry on MetricsFactory initialization by @fabianfett in #98
- Add docs for version 2.0 by @fabianfett in #100
- Document how to use labels by @fabianfett in #101
- Rename destroyMetric to unregisterMetric by @fabianfett in #102
- Update README.md by @sbeitzel in #105
- Switch from swiftformat to swift-format by @armandgrillet in #107
- Fix: MetricSystem => MetricsSystem by @yeahdongcn in #108
- Rename unregisterTimeHistogram to unregisterDurationHistogram by @simonjbeaumont in #109
- Unregister the metric fully when last labelled metric is unregistered by @simonjbeaumont in #110
- Add missing call to label customization closure for meter by @simonjbeaumont in #111
- Fix recommended email in security guidelines by @ktoso in #112
See also: 2.0.0-alpha.1, 2.0.0-alpha.2 for the previous alpha releases of the 2.x series.
New Contributors
- @finestructure made their first contribution in #99
- @sbeitzel made their first contribution in #105
- @armandgrillet made their first contribution in #107
- @yeahdongcn made their first contribution in #108
- @simonjbeaumont made their first contribution in #109
Full Changelog: 1.0.2...2.0.0