Skip to content

Instantly share code, notes, and snippets.

@filippo-quacquarelli
Last active April 23, 2017 07:49
Show Gist options
  • Save filippo-quacquarelli/1f2bbbd4f4cddc83155c2efc4fa87d2b to your computer and use it in GitHub Desktop.
Save filippo-quacquarelli/1f2bbbd4f4cddc83155c2efc4fa87d2b to your computer and use it in GitHub Desktop.
sentry.io sdk tutorial
<?php
require_once __DIR__ . '/sentry-php/lib/Raven/Autoloader.php';
Raven_Autoloader::register();
$client = new Raven_Client('https://***:***@sentry.io/***');
$error_handler = new Raven_ErrorHandler($client);
$error_handler->registerExceptionHandler();
$error_handler->registerErrorHandler();
$error_handler->registerShutdownFunction();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment