Create an instance of the
StatsdClient and boostrap the
MetricsSystem in your application's
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 uses SwiftNIO to establish a UDP connection to the
Metrics types are mapped as following:
- Counter -> Counter
- Gauge -> Gauge
- Recorder -> Histogram
- Timer -> Timer
Please see SECURITY.md for details on the security process.
Do not hesitate to get in touch as well, over on https://forums.swift.org/c/server