In setup, if passed port is not an integer, attempt to parse it with Integer/parseInt. Without this, if port was specified as a string, the library will silently fail when instantiating DatagramPacket and nothing gets sent to the statsd server. Allows for more flexible configuration, ie (apply s/setup (clojure.string/split "localhost:5725" #":"))
In an organization where lots of teams and apps are using statsd, it is important to prefix stats to keep them separate, but a pain to repeat this prefix in every stat in your app. This lets you define it (optionally) in one place. The format I use in my work is "team.app.hostname."