raygun4js
Version:
Raygun.io plugin for JavaScript
25 lines (22 loc) • 575 B
HTML
<html>
<head>
<title>Raygun4JS with V1 API</title>
<script src="/fixtures/common/instrumentXHRs.js"></script>
<script src="/dist/raygun.js"></script>
</head>
<body>
<script type="text/javascript">
Raygun.init('abcdef==', {allowInsecureSubmissions: true});
setTimeout(function () {
try {
throw new Error('Manual send');
} catch (e) {
Raygun.send(e, {
myCustomKey: 'myCustomValue'
});
}
}, 1000);
</script>
</body>
</html>