Releases: apple/swift-metrics
2.3.0
- #106 Introduced new
MetricsTestKit
module that allows asserting certain metrics have been emitted etc.- we will provide more documentation soon; meanwhile you can use this test as reference for how to use the testkit here's how one uses it for those curious https://github.com/apple/swift-cluster-membership/blob/main/Tests/SWIMTests/SWIMMetricsTests.swift
2.2.0
2.1.1
A minor new API to enable SystemMetrics from the new swift-metrics-extras (coming soon) repository.
SemVer Minor
New API:
- Expose
MetricsSystem.withWriterLock
so it can be invoked by alternate "bootstrap" functions, such as SystemMetrics; #86 Thanks @MrLotU !
For details on the changes please refer to the 0.2.1 milestone
2.1.0
SemVer Minor
New API:
Timer.recordInterval(since:)
for easier reporting of time since a "start"DispatchTime
#83 - thank you @slashmo!
SemVer Patch
- Metrics now include their labels when printed to ease debugging #82
For details on the changes please refer to the 0.2.1 milestone
swift-metrics 2.0.0
SemVer Major
- Add microseconds to the TimeUnit enum #64
Important note: The 1.x (previous) version of swift-metrics included a TimeUnit
enum which was missing a microseconds
case. Since adding a case to an enum is an API breaking change, we needed to release
this change as sever 2.0.0. We also used this opportunity to change the enum to a struct so we can add more time unit without breaking the API. That said, since 1.x and 2.x are almost API compatible, TimeUnit
is not used by swift-metrics directly and only used by few libraries that depend on it, most libraries should use the following dependency to avoid a fragmentation of ecosystem:
.package(url: "https://github.com/apple/swift-metrics.git", "1.0.0" ..< "3.0.0")
swift-metrics 1.2.1
swift-metrics 1.2.0
swift-metrics 1.1.0
swift-metrics 1.0.0
The initial release
swift-metrics 1.0.0 pre-release 1
Pre-release of swift-metrics