swift-statsd-client

1.1.1

metrics backend for swift-metrics that uses the statsd protocol
apple/swift-statsd-client

What's New

1.1.1

2026-02-16T16:28:32Z

What's Changed

SemVer Patch

Other Changes

  • Enable macOS CI on merge to main and daily timer by @rnro in #51
  • Enable macOS CI on pull requests by @rnro in #52
  • Enable Swift 6.1 jobs in CI by @rnro in #53
  • Drop Swift 5.9 by @rnro in #54
  • Enable release mode builds by @josephnoir in #55
  • chore: restrict GitHub workflow permissions - future-proof by @incertum in #59

New Contributors

Full Changelog: 1.1.0...1.1.1

SwiftStatsDClient

a metrics backend for swift-metrics that uses the statsd protocol, and can be used to integrate applications with observability solutions that support statsd including:

Getting started

Create an instance of the StatsdClient and boostrap the MetricsSystem in your application's main:

let statsdClient = try StatsdClient(host: host, port: port)
MetricsSystem.bootstrap(statsdClient)

See selecting a metrics backend implementation for more information.

Remember to also shutdown the client before you application terminates:

statsdClient.shutdown()

Architecture

StatsdClient uses SwiftNIO to establish a UDP connection to the statsd server.

Metrics types are mapped as following:

  • Counter -> Counter
  • Gauge -> Gauge
  • Recorder -> Histogram
  • Timer -> Timer

Security

Please see SECURITY.md for details on the security process.

Getting involved

Do not hesitate to get in touch as well, over on https://forums.swift.org/c/server

Run CI checks locally

You can run the GitHub Actions workflows locally using act. For detailed steps on how to do this please see https://github.com/swiftlang/github-workflows?tab=readme-ov-file#running-workflows-locally.

Description

  • Swift Tools 5.10.0
View More Packages from this Author

Dependencies

Last updated: Wed Apr 22 2026 19:32:56 GMT-0900 (Hawaii-Aleutian Daylight Time)