slashtrace/slashtrace-raygun

Raygun handler for SlashTrace

Installs: 8

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/slashtrace/slashtrace-raygun

1.0.0 2018-09-26 17:09 UTC

This package is auto-updated.

Last update: 2025-09-27 08:05:24 UTC


README

This is the Raygun handler for SlashTrace. Use it to send your errors and exceptions to your Raygun account.

Usage

  1. Install using Composer:

    composer require slashtrace/slashtrace-raygun
    
  2. Hook it into SlashTrace:

    use SlashTrace\SlashTrace;
    use SlashTrace\Raygun\RaygunHandler;
    
    $handler = new RaygunHandler("Your Raygun API key");
     
    $slashtrace = new SlashTrace();
    $slashtrace->addHandler($handler);

    Alternatively, you can pass in a pre-configured Raygun client when you instantiate the handler:

    $raygun = new Raygun4php\RaygunClient("Your Raygun API key");
    $handler = new RaygunHandler($raygun);
    
    $slashtrace->addHandler($handler);
    

Read the SlashTrace docs to see how to capture errors and exceptions, and how to attach additional data to your events.