Add `prefix: Option[String]` to the constructor of zio.metrics.Client (in zio-metrics-statsd module) so that (Dog)StatsDClient can mimic the behavior of the prefix/statsd_namespace param in Datadog's official client libs. #97
we'll need to add a parameter, prefix: Option[String], to zio.metrics.Client constuctor. Ideally the type signature should be prefix: Option[NonEmptyString] :)
add prefix to all metric names. For statsD, I think it uses dot as the separator. I might be wrong.
This request comes from a user (@amirhac) on Discord channel:
Datadog's official client libs support this prefix/statsd_namespace parameter: https://docs.datadoghq.com/developers/dogstatsd/?tab=hostagent#client-instantiation-parameters https://github.com/DataDog/java-dogstatsd-client
To support this in zio-metrics-statsd,
prefix: Option[String]
, tozio.metrics.Client
constuctor. Ideally the type signature should beprefix: Option[NonEmptyString]
:)