swift-metrics-extras

0.3.2

apple/swift-metrics-extras

What's New

0.3.2

2025-03-12T14:14:41Z

What's Changed

SemVer Minor

  • Migrate to GitHub Actions by @rnro in #35 (Also increases minimum supported Swift version to 5.9)

SemVer Patch

Other Changes

  • remove contributors script by @rnro in #36
  • Aligning semantic version label check name by @FranzBusch in #38
  • Enable MemberImportVisibility check on all targets by @rnro in #41
  • Update release.yml by @FranzBusch in #42
  • CI use 6.1 nightlies by @rnro in #43
  • Rename nightly_6_1 params to nightly_next by @rnro in #44
  • Only apply standard swift settings on valid targets by @rnro in #45

New Contributors

Full Changelog: 0.3.1...0.3.2

SwiftMetricsExtras

Extra packages complementing the core SwiftMetrics API.

Almost all production server software needs to emit metrics information for observability. Because it's unlikely that all parties can agree on one specific metrics backend implementation, this API is designed to establish a standard that can be implemented by various metrics libraries which then post the metrics data to backends like Prometheus, Graphite, publish over statsd, write to disk, etc.

This is the beginning of a community-driven open-source project actively seeking contributions, be it code, documentation, or ideas. Apart from contributing to SwiftMetrics itself, we need metrics compatible libraries which send the metrics over to backend such as the ones mentioned above. What SwiftMetrics provides today is covered in the API docs, but it will continue to evolve with community input.

What makes a good contribution to Metrics Extras?

Not good:

  • Most metrics contributions depend or implement some specific metrics backend–such implementations should have their own repository and are not good candidates for this repository.

Good:

  • However, if you have some useful metrics helpers, such as e.g. gathering cloud provider specific metrics independent of actual metrics backend which they would be emitted to, or other such metric system agnostic metrics additions–such additions are perfect examples of contributions very welcome to this package.

Adding the dependency

To add a dependency on the extras package, you need to declare it in your Package.swift:

.package(url: "https://github.com/apple/swift-metrics-extras.git", from: "0.1.0"),

and to your application/library target, add the specific module you would like to depend on to your dependencies:

.target(name: "BestExampleApp", dependencies: ["ExampleExtraMetrics"]),

Modules

Swift Metrics Extras ships the following extra modules:

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

Last updated: Thu May 15 2025 06:15:31 GMT-0900 (Hawaii-Aleutian Daylight Time)