swift-metrics

Metrics API for Swift

APACHE-2.0 License

Stars
647
Committers
20

Bot releases are hidden (Show)

swift-metrics - 2.5.0 Latest Release

Published by FranzBusch 4 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/apple/swift-metrics/compare/2.4.4...2.5.0

swift-metrics - 2.4.4

Published by ktoso 5 months ago

What's Changed

Full Changelog: https://github.com/apple/swift-metrics/compare/2.4.3...2.4.4

swift-metrics - 2.4.3

Published by ktoso 5 months ago

Source break fix

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.

What changed

Full Changelog: https://github.com/apple/swift-metrics/compare/2.4.2...2.4.3

swift-metrics - 2.4.2

Published by ktoso 5 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/apple/swift-metrics/compare/2.4.1...2.4.2

swift-metrics - 2.4.1

Published by tomerd over 1 year ago

What's Changed

Full Changelog: https://github.com/apple/swift-metrics/compare/2.4.0...2.4.1

swift-metrics - 2.4.0

Published by ktoso over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/apple/swift-metrics/compare/2.3.4...2.4.0

swift-metrics - 2.3.4

Published by ktoso over 1 year ago

What's Changed

CI updates

New Contributors

Full Changelog: https://github.com/apple/swift-metrics/compare/2.3.3...2.3.4

swift-metrics - 2.3.3

Published by ktoso almost 2 years ago

What's Changed

Full Changelog: https://github.com/apple/swift-metrics/compare/2.3.2...2.3.3

swift-metrics - 2.3.2

Published by ktoso about 2 years ago

What's Changed

Full Changelog: https://github.com/apple/swift-metrics/compare/2.3.1...2.3.2

swift-metrics - 2.3.1

Published by ktoso over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/apple/swift-metrics/compare/2.3.0...2.3.1

swift-metrics - 2.3.0

Published by ktoso over 2 years ago

swift-metrics - 2.2.0

Published by ktoso about 3 years ago

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!
swift-metrics - 2.1.1

Published by ktoso almost 4 years ago

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

SemVer Minor

New API:


For details on the changes please refer to the 0.2.1 milestone

swift-metrics -

Published by ktoso about 4 years ago

SemVer Minor

New API:

SemVer Patch


For details on the changes please refer to the 0.2.1 milestone

swift-metrics - swift-metrics 2.0.0

Published by tomerd over 4 years ago

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 - swift-metrics 1.2.1

Published by tomerd over 4 years ago

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 - swift-metrics 1.2.0

Published by tomerd about 5 years ago

SemVer Minor

  • support preferred display time units for Timers #42

SemVer Patch

  • update conduct email group #41
  • update conduct email address #44
swift-metrics - swift-metrics 1.1.0

Published by tomerd about 5 years ago

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 - swift-metrics 1.0.0

Published by tomerd about 5 years ago

The initial release

swift-metrics - swift-metrics 1.0.0 pre-release 1

Published by tomerd about 5 years ago

Pre-release of swift-metrics