StatsD.this

NOTE: Assumes socket is in connected state, and that it remain so until this object is destroyed. If the socket is or becomes disconnected, metrics will be dropped.

Setting SOCK_NONBLOCK is recommended to prevent blocking metrics-producing threads, and instead dropping metrics.

  1. this(socket_t socket, string prefix, Random rng)
    struct StatsD
    nothrow
    this
    (
    socket_t socket
    ,
    string prefix = ""
    ,
    ref Random rng = rndGen()
    )
  2. this()

Meta