copy from zipkin gems
Merge pull request #1 from zhaoxuan/master

copy from zipkin gems