Skip to content

Releases: apple/swift-metrics

2.5.0

24 Jun 10:52
e0165b5
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 2.4.4...2.5.0

2.4.4

15 May 12:47
2.4.4
ce594e7
Compare
Choose a tag to compare

What's Changed

  • fix availability of record(:Duration) API by @ktoso in #146

Full Changelog: 2.4.3...2.4.4

2.4.3

15 May 05:40
2.4.3
0124d9a
Compare
Choose a tag to compare

Source break fix

This release fixes a minor source break caused between 2.4.1 and 2.4.2:

The PR #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 #144 in 2.4.3, please use 2.4.3 instead. Thank you @hamzahrmalik for the diagnosis and fix.

What changed

  • Change Timer.record(duration: Duration) signature to avoid source breakage by @hamzahrmalik in #144

Full Changelog: 2.4.2...2.4.3

2.4.2 (accidental source break, use 2.4.3)

14 May 04:23
2.4.2
eb18581
Compare
Choose a tag to compare

Warning: source break

This release has an accidental minor source break:

The PR #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 #144 in 2.4.3, please use 2.4.3 instead. Thank you @hamzahrmalik for the diagnosis and fix.

What's Changed

New Contributors

Full Changelog: 2.4.1...2.4.2

2.4.1

21 Jun 21:16
971ba26
Compare
Choose a tag to compare

What's Changed

  • add increment and decrement public API to Meter by @tomerd in #132

Full Changelog: 2.4.0...2.4.1

2.4.0

30 May 11:18
2.4.0
3402510
Compare
Choose a tag to compare

What's Changed

  • Update CI by @yim-lee in #124
  • Use UUID instead of NSUUID in MetricsTests by @fabianfett in #126
  • Add Package.resolved to .gitignore by @fabianfett in #125
  • add "meter" - a new type of metric and metric handler by @tomerd in #123
  • Use the MetricsTestKit in the MetricsTests rather than using a copy of the TestMetrics utilities by @hamzahrmalik in #128
  • MetricsTestKit: expose all metrics publicly. This allows users to run checks on counters when they might not know the exact label by @hamzahrmalik in #127
  • Make 'values' on TestCounter, TestRecorder and TestMeter public by @hamzahrmalik in #129

New Contributors

Full Changelog: 2.3.4...2.4.0

2.3.4

02 Feb 10:02
2.3.4
e8bced7
Compare
Choose a tag to compare

What's Changed

  • Propagate displayUnit when using MultiplexMetricsHandler by @gjcairo in #122

CI updates

  • Add CI for Swift 5.8 and update nightly to Ubuntu 22.04 by @yim-lee in #121

New Contributors

  • @gjcairo made their first contribution in #122 - thank you!

Full Changelog: 2.3.3...2.3.4

2.3.3

07 Dec 10:50
2.3.3
9b39d81
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.3.2...2.3.3

2.3.2

20 Jul 08:39
2.3.2
53be786
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.3.1...2.3.2

2.3.1

25 May 05:35
2.3.1
1c1408b
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 2.3.0...2.3.1