NAME

SlapbirdAPM::Agent::Mojo

The SlapbirdAPM user-agent for Mojolicious applications.

SYNOPSIS

  • Create an application on SlapbirdAPM

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

  • Add plugin 'SlapbirdAPM'; to your Mojolicious application

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

  • Restart your application

EXAMPLE

use strict;
use warnings;

use Mojolicious::Lite -signatures;

plugin 'SlapbirdAPM', key => '01J5H5BGE14WCZ3QKQA1AQ704Jabcv';

get '/' => sub {
  my ($c) = @_;
  return $c->render(text => 'Hello World!');
};

app->start;

SEE ALSO

SlapbirdAPM::Agent::Plack

AUTHOR

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

LICENSE

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

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