Skip to content

Releases: apple/swift-metrics

2.2.0

16 Aug 10:08
2.2.0
Compare
Choose a tag to compare

New addition allowing for floating point counters. This API will be right away supported by SwiftPrometheus, other libs may follow.

SemVer Minor

New API:

  • Add FloatingPointCounter which allows reporting floating point metrics when necessary. Thanks @rauhul!

2.1.1

12 Nov 13:01
2.1.1
Compare
Choose a tag to compare

A minor new API to enable SystemMetrics from the new swift-metrics-extras (coming soon) repository.

SemVer Minor

New API:

  • Expose MetricsSystem.withWriterLockso 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

14 Oct 03:23
2.1.0
Compare
Choose a tag to compare

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

04 Mar 01:56
708b960
Compare
Choose a tag to compare

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

10 Feb 19:21
09b72f6
Compare
Choose a tag to compare

SemVer Patch

  • Update Timer.measure() to use DispatchTime instead of Date #52
  • Print correct error message if bootstrap is called multiple times #57
  • Improve precondition error messages in Lock functions #58

swift-metrics 1.2.0

09 Sep 17:30
Compare
Choose a tag to compare

SemVer Minor

  • support preferred display time units for Timers #42

SemVer Patch

  • update conduct email group #41
  • update conduct email address #44

swift-metrics 1.1.0

30 Jul 22:09
Compare
Choose a tag to compare

SemVer Minor

  • Add Timer.recordNanoseconds Generic Overload (#28)

SemVer Patch

  • Add guards for Int64 overflow in Timer methods
  • doc: #26 clarify which init to use, reformat docs for easier noticing this

swift-metrics 1.0.0

30 Jul 22:05
Compare
Choose a tag to compare

The initial release

swift-metrics 1.0.0 pre-release 1

30 Jul 22:04
b017e02
Compare
Choose a tag to compare
Pre-release

Pre-release of swift-metrics