StatsdClient constructor

StatsdClient(
  1. StatsdConnection connection,
  2. {String prefix}
)

Creates new Statsd client.

If prefix is provided it will be prepended to all metric names that are sent via this client.

Implementation

factory StatsdClient(StatsdConnection connection, {String prefix}) {
  return new _StatsdClient(connection, prefix ?? '');
}