The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

DataDog::DogStatsd::Helper - shortcut/helper for DataDog::DogStatsd

SYNOPSIS

use DataDog::DogStatsd::Helper qw(stats_inc stats_dec stats_timing stats_gauge stats_count stats_histogram)

stats_inc('logins'); # shortcut for DataDog::DogStatsd->new->increment('logins')
stats_dec('logins'); # shortcut for DataDog::DogStatsd->new->decrement('logins')
stats_timing('test.timing', 1); # ->timing
stats_gauge('test.gauge', 10); # ->gauge
stats_count('test.count', 20); # ->count
stats_histogram('test.histogram', 100); # ->histogram

DESCRIPTION

DataDog::DogStatsd::Helper is a helper for DataDog::DogStatsd, it will reuse the instance of DataDog::DogStatsd for all calls.

AUTHOR

Fayland Lam <fayland@binary.com>

COPYRIGHT

Copyright 2015- Fayland Lam

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO