{"id":434,"date":"2012-01-23T22:14:05","date_gmt":"2012-01-23T21:14:05","guid":{"rendered":"http:\/\/www.streppone.it\/cosimo\/blog\/2012\/01\/perl-client-for-etsy-statsd-improved-and-released-v0-02-on-cpan\/"},"modified":"2012-01-23T22:14:05","modified_gmt":"2012-01-23T21:14:05","slug":"perl-client-for-etsy-statsd-improved-and-released-v0-02-on-cpan","status":"publish","type":"post","link":"https:\/\/www.streppone.it\/cosimo\/blog\/2012\/01\/perl-client-for-etsy-statsd-improved-and-released-v0-02-on-cpan\/","title":{"rendered":"Perl client for Etsy statsd, improved and released v0.02 on CPAN"},"content":{"rendered":"<p>Sometimes bugs reported on the CPAN issue tracker are the perfect excuse to improve your code. In this case, my client module for <a href=\"http:\/\/www.etsy.com\" rel=\"nofollow\">Etsy<\/a> <a href=\"https:\/\/github.com\/etsy\/statsd\/\" rel=\"nofollow\">statsd<\/a> service, <a href=\"https:\/\/metacpan.org\/module\/Net::Statsd\" rel=\"nofollow\">Net::Statsd<\/a>, got an update because of <a href=\"https:\/\/rt.cpan.org\/Ticket\/Display.html?id=74172\" rel=\"nofollow\">this ticket, RT#74172<\/a>.<\/p>\n<p>As with all my recent CPAN module, when a new bug is filed against it, I try to <a href=\"https:\/\/github.com\/cosimo\/perl5-net-statsd\/blob\/master\/t\/rt-74172.t\" rel=\"nofollow\">create a specific test case<\/a>. Sometimes it&#39;s quite hard to do, but this time wasn&#39;t, even though I had to refactor the existing code. This allowed me to improve the testability of the code in the process, so thanks to the reporter of that ticket :)<\/p>\n<p>I still haven&#39;t managed to test my own code with the statsd service, and hook it up to <a href=\"http:\/\/graphite.wikidot.com\/\" rel=\"nofollow\">Graphite<\/a>. Soon :-)<\/p>\n<p>As usual, code is up on Github:<\/p>\n<p><a href=\"https:\/\/github.com\/cosimo\/perl5-net-statsd\" rel=\"nofollow\">https:\/\/github.com\/cosimo\/perl5-net-statsd<\/a><\/p>\n<p>And on CPAN too:<\/p>\n<p><a href=\"https:\/\/metacpan.org\/module\/Net::Statsd\" rel=\"nofollow\">https:\/\/metacpan.org\/module\/Net::Statsd<\/a>.<br \/>\nHave fun!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes bugs reported on the CPAN issue tracker are the perfect excuse to improve your code. In this case, my client module for Etsy statsd service, Net::Statsd, got an update because of this ticket, RT#74172. As with all my recent CPAN module, when a new bug is filed against it, I try to create a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[49,236,63,239,237,50,238],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Perl client for Etsy statsd, improved and released v0.02 on CPAN - Random hacking<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.streppone.it\/cosimo\/blog\/2012\/01\/perl-client-for-etsy-statsd-improved-and-released-v0-02-on-cpan\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Perl client for Etsy statsd, improved and released v0.02 on CPAN - Random hacking\" \/>\n<meta property=\"og:description\" content=\"Sometimes bugs reported on the CPAN issue tracker are the perfect excuse to improve your code. In this case, my client module for Etsy statsd service, Net::Statsd, got an update because of this ticket, RT#74172. As with all my recent CPAN module, when a new bug is filed against it, I try to create a [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.streppone.it\/cosimo\/blog\/2012\/01\/perl-client-for-etsy-statsd-improved-and-released-v0-02-on-cpan\/\" \/>\n<meta property=\"og:site_name\" content=\"Random hacking\" \/>\n<meta property=\"article:published_time\" content=\"2012-01-23T21:14:05+00:00\" \/>\n<meta name=\"author\" content=\"cosimo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"cosimo\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2012\/01\/perl-client-for-etsy-statsd-improved-and-released-v0-02-on-cpan\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2012\/01\/perl-client-for-etsy-statsd-improved-and-released-v0-02-on-cpan\/\"},\"author\":{\"name\":\"cosimo\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\"},\"headline\":\"Perl client for Etsy statsd, improved and released v0.02 on CPAN\",\"datePublished\":\"2012-01-23T21:14:05+00:00\",\"dateModified\":\"2012-01-23T21:14:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2012\/01\/perl-client-for-etsy-statsd-improved-and-released-v0-02-on-cpan\/\"},\"wordCount\":159,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\"},\"keywords\":[\"cpan\",\"etsy\",\"github\",\"graphite\",\"net::statsd\",\"perl\",\"statsd\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.streppone.it\/cosimo\/blog\/2012\/01\/perl-client-for-etsy-statsd-improved-and-released-v0-02-on-cpan\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2012\/01\/perl-client-for-etsy-statsd-improved-and-released-v0-02-on-cpan\/\",\"url\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2012\/01\/perl-client-for-etsy-statsd-improved-and-released-v0-02-on-cpan\/\",\"name\":\"Perl client for Etsy statsd, improved and released v0.02 on CPAN - Random hacking\",\"isPartOf\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#website\"},\"datePublished\":\"2012-01-23T21:14:05+00:00\",\"dateModified\":\"2012-01-23T21:14:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2012\/01\/perl-client-for-etsy-statsd-improved-and-released-v0-02-on-cpan\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.streppone.it\/cosimo\/blog\/2012\/01\/perl-client-for-etsy-statsd-improved-and-released-v0-02-on-cpan\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/2012\/01\/perl-client-for-etsy-statsd-improved-and-released-v0-02-on-cpan\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.streppone.it\/cosimo\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Perl client for Etsy statsd, improved and released v0.02 on CPAN\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#website\",\"url\":\"https:\/\/www.streppone.it\/cosimo\/blog\/\",\"name\":\"Random hacking\",\"description\":\"Assume nothing. Code defensively. Keep it simple, stupid!\",\"publisher\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.streppone.it\/cosimo\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1\",\"name\":\"cosimo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g\",\"caption\":\"cosimo\"},\"logo\":{\"@id\":\"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/www.streppone.it\/cosimo\/blog\/author\/cosimo\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Perl client for Etsy statsd, improved and released v0.02 on CPAN - Random hacking","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.streppone.it\/cosimo\/blog\/2012\/01\/perl-client-for-etsy-statsd-improved-and-released-v0-02-on-cpan\/","og_locale":"en_US","og_type":"article","og_title":"Perl client for Etsy statsd, improved and released v0.02 on CPAN - Random hacking","og_description":"Sometimes bugs reported on the CPAN issue tracker are the perfect excuse to improve your code. In this case, my client module for Etsy statsd service, Net::Statsd, got an update because of this ticket, RT#74172. As with all my recent CPAN module, when a new bug is filed against it, I try to create a [&hellip;]","og_url":"https:\/\/www.streppone.it\/cosimo\/blog\/2012\/01\/perl-client-for-etsy-statsd-improved-and-released-v0-02-on-cpan\/","og_site_name":"Random hacking","article_published_time":"2012-01-23T21:14:05+00:00","author":"cosimo","twitter_card":"summary_large_image","twitter_misc":{"Written by":"cosimo","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2012\/01\/perl-client-for-etsy-statsd-improved-and-released-v0-02-on-cpan\/#article","isPartOf":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2012\/01\/perl-client-for-etsy-statsd-improved-and-released-v0-02-on-cpan\/"},"author":{"name":"cosimo","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1"},"headline":"Perl client for Etsy statsd, improved and released v0.02 on CPAN","datePublished":"2012-01-23T21:14:05+00:00","dateModified":"2012-01-23T21:14:05+00:00","mainEntityOfPage":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2012\/01\/perl-client-for-etsy-statsd-improved-and-released-v0-02-on-cpan\/"},"wordCount":159,"commentCount":0,"publisher":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1"},"keywords":["cpan","etsy","github","graphite","net::statsd","perl","statsd"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.streppone.it\/cosimo\/blog\/2012\/01\/perl-client-for-etsy-statsd-improved-and-released-v0-02-on-cpan\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2012\/01\/perl-client-for-etsy-statsd-improved-and-released-v0-02-on-cpan\/","url":"https:\/\/www.streppone.it\/cosimo\/blog\/2012\/01\/perl-client-for-etsy-statsd-improved-and-released-v0-02-on-cpan\/","name":"Perl client for Etsy statsd, improved and released v0.02 on CPAN - Random hacking","isPartOf":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#website"},"datePublished":"2012-01-23T21:14:05+00:00","dateModified":"2012-01-23T21:14:05+00:00","breadcrumb":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2012\/01\/perl-client-for-etsy-statsd-improved-and-released-v0-02-on-cpan\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.streppone.it\/cosimo\/blog\/2012\/01\/perl-client-for-etsy-statsd-improved-and-released-v0-02-on-cpan\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/2012\/01\/perl-client-for-etsy-statsd-improved-and-released-v0-02-on-cpan\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.streppone.it\/cosimo\/blog\/"},{"@type":"ListItem","position":2,"name":"Perl client for Etsy statsd, improved and released v0.02 on CPAN"}]},{"@type":"WebSite","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#website","url":"https:\/\/www.streppone.it\/cosimo\/blog\/","name":"Random hacking","description":"Assume nothing. Code defensively. Keep it simple, stupid!","publisher":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.streppone.it\/cosimo\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/c443bedbf6ecf99550d6395620801df1","name":"cosimo","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cb1d938720df45a2720724aae99e3bfc?s=96&r=g","caption":"cosimo"},"logo":{"@id":"https:\/\/www.streppone.it\/cosimo\/blog\/#\/schema\/person\/image\/"},"url":"https:\/\/www.streppone.it\/cosimo\/blog\/author\/cosimo\/"}]}},"_links":{"self":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts\/434"}],"collection":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/comments?post=434"}],"version-history":[{"count":0,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/posts\/434\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/media?parent=434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/categories?post=434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.streppone.it\/cosimo\/blog\/wp-json\/wp\/v2\/tags?post=434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}