NAME
SlapbirdAPM::Agent::Plack
The SlapbirdAPM user-agent for Plack applications.
SYNOPSIS
Create an application on SlapbirdAPM
Install this ie
cpanm SlapbirdAPM::Agent::Plack
,cpan -I SlapbirdAPM::Agent::Plack
Add
enable 'SlapbirdAPM';
to your Plack::Builder statementAdd your API key to your environment:
SLAPBIRDAPM_API_KEY="$api_key"
Restart your application
EXAMPLE
This example uses a Dancer2 application, but you can substitute for any Plack application.
use strict;
use warnings;
use Dancer2;
use Plack::Builder;
get '/' => sub {
'Hello World';
};
builder {
enable 'SlapbirdAPM', key => '01J5GY4NF3TDDDNFJZJDDMB8CRmy-plack-app';
app;
};
SEE ALSO
AUTHOR
Mollusc Labs, https://github.com/mollusc-labs
LICENSE
SlapbirdAPM::Agent::Plack like all SlapbirdAPM user-agents is licensed under the MIT license.
SlapbirdAPM (the website) however, is licensed under the GNU AGPL version 3.0.