Perl

Installation

Sentry::Raven is distributed via CPAN:

Copied
cpanm Sentry::Raven

Configuring the SDK

Create a new instance of the SDK:

Copied
my $sentry = Sentry::Raven->new( sentry_dsn => 'https://examplePublicKey@o0.ingest.sentry.io/0' );

Reporting Errors

The easiest way to capture errors is to execute code within a block:

Copied
# capture all errors
$sentry->capture_errors( sub {
    ..do something here..
} );

For more information, see the CPAN documentation.

Resources

Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) to suggesting an update ("yeah, this would be better").