{"id":26804833,"url":"https://github.com/throughnothing/dancer-plugin-statsd","last_synced_at":"2025-03-29T22:27:16.345Z","repository":{"id":5901430,"uuid":"7120160","full_name":"throughnothing/Dancer-Plugin-StatsD","owner":"throughnothing","description":"Dancer Plugin for StatsD support","archived":false,"fork":false,"pushed_at":"2013-12-12T21:30:34.000Z","size":128,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-04-14T01:26:30.240Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://metacpan.org/release/Dancer-Plugin-StatsD/","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/throughnothing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-11T22:01:32.000Z","updated_at":"2014-09-09T06:50:14.000Z","dependencies_parsed_at":"2022-09-05T08:00:23.552Z","dependency_job_id":null,"html_url":"https://github.com/throughnothing/Dancer-Plugin-StatsD","commit_stats":null,"previous_names":[],"tags_count":1,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/throughnothing%2FDancer-Plugin-StatsD","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/throughnothing%2FDancer-Plugin-StatsD/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/throughnothing%2FDancer-Plugin-StatsD/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/throughnothing%2FDancer-Plugin-StatsD/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/throughnothing","download_url":"https://codeload.github.com/throughnothing/Dancer-Plugin-StatsD/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246252629,"owners_count":20747773,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-29T22:27:15.630Z","updated_at":"2025-03-29T22:27:16.336Z","avatar_url":"https://github.com/throughnothing.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nDancer::Plugin::StatsD - Dancer Plugin for StatsD support\n\n# VERSION\n\nversion 0.0001\n\n# SYNOPSIS\n\n[Dancer::Plugin::StatsD](https://metacpan.org/pod/Dancer::Plugin::StatsD) is a [Dancer](https://metacpan.org/pod/Dancer) plugin that lets you log events and\ntrack times using `StatsD`.\n\n    use Dancer;\n    use Dancer::Plugin::StatsD qw( statsd increment decrement update timing );\n    use Time::HiRes qw( time );\n\n    hook before_error_render =\u003e sub {\n        my ($err) = @_;\n        statsd-\u003eincrement( 'errors.' . $err-\u003ecode );\n    };\n\n    get '/' =\u003e sub {\n        # Increment the homepage hits counter\n        statsd-\u003eincrement( 'hits.homepage' );\n\n        my $t1 = time;\n\n        # Do something that takes a while\n\n        # Log the time taken in ms\n        statsd-\u003etiming( 'something.slow', (time - $t1) * 1000 );\n    };\n\n    dance;\n\n# AUTHOR\n\nWilliam Wolf \u003cthroughnothing@gmail.com\u003e\n\n# COPYRIGHT AND LICENSE\n\n\n\nWilliam Wolf has dedicated the work to the Commons by waiving all of his\nor her rights to the work worldwide under copyright law and all related or\nneighboring legal rights he or she had in the work, to the extent allowable by\nlaw.\n\nWorks under CC0 do not require attribution. When citing the work, you should\nnot imply endorsement by the author.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthroughnothing%2Fdancer-plugin-statsd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthroughnothing%2Fdancer-plugin-statsd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthroughnothing%2Fdancer-plugin-statsd/lists"}