Getting Started

Please check out our examples on Github!

Before you see analytics you will have to restart your application.

Mojolicious

  1. Login to SlapbirdAPM via Github
  2. Create your application
  3. Copy your API key
  4. Install the SlapbirdAPM Mojolicious plugin ie. cpan -I SlapbirdAPM::Agent::Mojo
  5. Add the plugin to your application with one line of code plugin 'SlapbirdAPM';
  6. 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

Dancer2

  1. Copy your API key
  2. Install the SlapbirdAPM Dancer2 plugin ie. cpan -I SlapbirdAPM::Agent::Dancer2
  3. Add the plugin to your Dancer2 application ie use Dancer2::Plugin::SlapbirdAPM
  4. Add the SLAPBIRDAPM_API_KEY environment variable to your application
  5. Optionally: You can also pass your API key to the plugin via config key => $API_KEY in your config.yml

Plack

  1. Copy your API key
  2. Install the SlapbirdAPM Plack middleware ie. cpan -I SlapbirdAPM::Agent::Plack
  3. Add the middleware to your application, typically this is done using Plack::Builder
  4. Add the SLAPBIRDAPM_API_KEY environment variable to your application
  5. Optionally: You can also pass your API key to the plugin via key => $API_KEY in your Plack::Builder declaration