#technoburger
<script src="https://cdn.ravenjs.com/2.3.0/raven.min.js"></script>
<script>
Raven.config('your DSN goes here').install();
</script>
// Log an error manually.
try {
thisFunctionDoesNotExist('really!');
} catch (e) {
Raven.captureException(e);
}
$ npm install raven --save
var raven = require('raven');
var client = new raven.Client('your DSN goes here');
// Use Sentry as global error tracker.
client.patchGlobal();
// Log an error manually.
try {
thisFunctionDoesNotExist('really!');
} catch (e) {
client.captureException(e);
}
$ gem "sentry-raven"
require 'raven'
Raven.configure do |config|
config.dsn = 'your DSN goes here'
end
# Configure Rack to use it (optional; in config.ru).
use Raven::Rack
# Log an exception manually.
begin
1 / 0
rescue ZeroDivisionError => exception
Raven.capture_exception(exception)
end
$ composer require "raven/raven"
// In the autoloader:
require_once '/path/to/Raven/library/Raven/Autoloader.php';
Raven_Autoloader::register();
// In the application:
$client = new Raven_Client('your DSN goes here');
$error_handler = new Raven_ErrorHandler($client);
$error_handler->registerExceptionHandler();
$error_handler->registerErrorHandler();
$error_handler->registerShutdownFunction();
// Log an exception manually.
try {
throw new \Exception('Something went wrong');
} catch (\Exception $e) {
$client->captureException($e);
}
http://is.gd/sntry
Solution: Snooze forever
Solution: Delete/snooze forever
Example:
Raven.config('your DSN goes here', {
ignoreErrors: [/BoringError/],
whitelistUrls: [/\/js\/my-thing\.js/]
}).install();