Also this is generic enough to chuck into zipkin-common Util