Getting Started
Please check out our examples on Github!
Before you see analytics you will have to restart your application.
-
Perl
-
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_KEYenvironment 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_KEYenvironment variable to your application - Optionally: You can also pass your API key to the plugin via config
key => $API_KEYin 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_KEYenvironment variable to your application - Optionally: You can also pass your API key to the plugin via
key => $API_KEYin yourPlack::Builderdeclaration
-
CGI
- Login to SlapbirdAPM via Github
- Create your application
- Copy your API key
- Install the SlapbirdAPM CGI agent ie.
cpan -I SlapbirdAPM::Agent::CGI - Use the agent in your CGI script
use SlapbirdAPM::Agent::CGI; -
Add the
SLAPBIRDAPM_API_KEYenvironment variable to your application, in Apache2.4:SetEnv SLAPBIRDAPM_API_KEY ...
-
Raku
-
Humming-Bird
- Copy your API key
- Install the latest version of Humming-Bird
- Add the middleware to your application:
plugin 'SlapbirdAPM'; - Add the
SLAPBIRDAPM_API_KEYenvironment variable to your application