create an instance of the
StatsdClient and boostrap the
MertricsSystem in your application's main:
let statsdClient = try StatsdClient(host: host, port: port) MetricsSystem.bootstrap(statsdClient)
remeber to also shutdown the client before you application terminates:
the statsd client uses swift-nio to establish a UDP connection to the statsd server
metrics types are mapped as follwoing:
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
|Last commit: 3 days ago|
MetricNameSanitizer and enables it by default, allowing statsd-client to be used directly with Vapor apps (as their metric labels may include
: which was causing trouble).
See #21 for details.