Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
t
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Build Status

#WebService::Raygun

Perl interface to the Raygun API

##Synopsis

use Try::Tiny;
use WebService::Raygun::Messenger;

sub some_code {
    my ( $self, $request ) = @_;
    try {
        # Code that throws an error.
    }
    catch {
        my $exception = $_;

        # Initialise raygun.io messenger
        my $raygun = WebService::Raygun::Messenger->new(
            api_key => '<your raygun.io api key>',
            message => {
                error   => $exception,
                request => $request,
                user  => 'null@null.com',
            }
        );
        # send message to raygun.io
        my $response = $raygun->fire_raygun;
        
    };
}

##Notes

Although this module should install without an API key from raygun.io, you will need one for it to be of any use. By default, it uses whatever is in the RAYGUN_API_KEY environment variable, but this is mainly so that the tests can be run without any user interaction.

About

Talk to the Raygun.io API

Resources

Packages

No packages published

Languages

You can’t perform that action at this time.