NAME

SlapbirdAPM::Agent::Dancer2

The SlapbirdAPM user-agent for Dancer2 applications.

SYNOPSIS

  • Create an application on SlapbirdAPM

  • Install this ie cpanm SlapbirdAPM::Agent::Dancer2, cpan -I SlapbirdAPM::Agent::Dancer2

  • Add use Dancer2::Plugin::SlapbirdAPM to your Dancer2 application

  • Add your API key to your environment: SLAPBIRDAPM_API_KEY="$api_key"

  • Restart your application

EXAMPLE

use strict;
use warnings;

use Dancer2;

BEGIN {
# would usually be in config.yml
  set plugins => {SlapbirdAPM => {key => '<my-api-key>'}};
}

use Dancer2::Plugin::SlapbirdAPM;

get '/' => sub {
   'Hello World!';
};

dance;

SEE ALSO

SlapbirdAPM::Agent::Plack

SlapbirdAPM::Agent::Mojo

AUTHOR

Mollusc Labs, https://github.com/mollusc-labs

LICENSE

SlapbirdAPM::Agent::Dancer2 like all SlapbirdAPM user-agents is licensed under the MIT license.

SlapbirdAPM (the website) however, is licensed under the GNU AGPL version 3.0.