Metrics API for Swift
Full Changelog: https://github.com/apple/swift-metrics/compare/2.4.3...2.4.4
This release fixes a minor source break caused between 2.4.1 and 2.4.2:
The PR https://github.com/apple/swift-metrics/pull/133 introduced the following method:
public func record(_ duration: Duration)
There was already a similar function
public func record(_ duration: DispatchTimeInterval)
This can cause ambiguity for the compiler when using . shortcuts because of an overlap in case names, e.g.
timer.record(.nanoseconds(123)) // <-- ambiguous, is this DispatchTimeInterval or Duration?
This release fixes this by having the new method be called record(duration:)
.
Fixed by https://github.com/apple/swift-metrics/pull/144 in 2.4.3, please use 2.4.3 instead. Thank you @hamzahrmalik for the diagnosis and fix.
Full Changelog: https://github.com/apple/swift-metrics/compare/2.4.2...2.4.3
This release has an accidental minor source break:
The PR https://github.com/apple/swift-metrics/pull/133 introduced the following method:
public func record(_ duration: Duration)
There was already a similar function
public func record(_ duration: DispatchTimeInterval)
This can cause ambiguity for the compiler when using . shortcuts because of an overlap in case names, e.g.
timer.record(.nanoseconds(123)) // <-- ambiguous, is this DispatchTimeInterval or Duration?
Fixed by https://github.com/apple/swift-metrics/pull/144 in 2.4.3, please use 2.4.3 instead. Thank you @hamzahrmalik for the diagnosis and fix.
Full Changelog: https://github.com/apple/swift-metrics/compare/2.4.1...2.4.2
Full Changelog: https://github.com/apple/swift-metrics/compare/2.4.0...2.4.1
Full Changelog: https://github.com/apple/swift-metrics/compare/2.3.4...2.4.0
Full Changelog: https://github.com/apple/swift-metrics/compare/2.3.3...2.3.4
MetricsFactory
Sendable by @fabianfett in https://github.com/apple/swift-metrics/pull/116
Full Changelog: https://github.com/apple/swift-metrics/compare/2.3.2...2.3.3
Full Changelog: https://github.com/apple/swift-metrics/compare/2.3.1...2.3.2
MetricsTestKit
as a product by @fabianfett in https://github.com/apple/swift-metrics/pull/111
Full Changelog: https://github.com/apple/swift-metrics/compare/2.3.0...2.3.1
MetricsTestKit
module that allows asserting certain metrics have been emitted etc.