Getting Started
Please check out our examples on Github!
Before you see analytics you will have to restart your application.
Mojolicious
- Login to SlapbirdAPM via Github
- Create your application
- Copy your API key
- 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_KEY
environment variable to your application- Optionally: You can also pass your API key to the plugin via
plugin 'SlapbirdAPM', key => $API_KEY
- Optionally: You can also pass your API key to the plugin via
Dancer2
- Copy your API key
- Install the SlapbirdAPM Dancer2 plugin ie.
cpan -I SlapbirdAPM::Agent::Dancer2
- Add the plugin to your Dancer2 application ie
use Dancer2::Plugin::SlapbirdAPM
- Add the
SLAPBIRDAPM_API_KEY
environment variable to your application - Optionally: You can also pass your API key to the plugin via config
key => $API_KEY
in yourconfig.yml
Plack
- Copy your API key
- 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_KEY
environment variable to your application - Optionally: You can also pass your API key to the plugin via
key => $API_KEY
in yourPlack::Builder
declaration