Getting Started #
- Login to SlapbirdAPM
- Create your application
- Copy your API key
Agents #
Mojolicious #
- Install the SlapbirdAPM Mojolicious plugin ie.
cpan -I SlapbirdAPM::Agent::Mojo - Add the plugin to your application with one line of code
plugin 'SlapbirdAPM'; - Add the
SLAPBIRDAPM_API_KEYenvironment variable to your application
Optionally: You can also pass your API key to the plugin via plugin 'SlapbirdAPM', key => $API_KEY
Dancer2 #
- Install the SlapbirdAPM Dancer2 plugin ie.
cpan -I SlapbirdAPM::Agent::Dancer2 - Add the plugin to your Dancer2 application,
use Dancer2::Plugin::SlapbirdAPM - Add the
SLAPBIRDAPM_API_KEYenvironment variable to your application
Optionally: You can also pass your API key to the plugin via key: $API_KEY in your config.yml
Plack #
- Install the SlapbirdAPM Plack middleware ie.
cpan -I SlapbirdAPM::Agent::Plack - Add the middleware to your application, typically this is done using
Plack::Builder - Add the
SLAPBIRDAPM_API_KEYenvironment variable to your application
Optionally: You can also pass your API key to the plugin via key => $API_KEY in your Plack::Builder declaration