This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_rollbarConfig = { | |
accessToken: 'your token', | |
captureUncaught: true, | |
payload: { | |
environment: 'production', | |
}, | |
checkIgnore: function(isUncaught, args, payload) { | |
if (isUncaught && args[0] && args[0].indexOf('Script error') === 0) { | |
// ignore | |
return true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_rollbarConfig = { | |
"server.environment": "production", | |
// any other existing config... | |
checkIgnore: function(errMsg, file, line, col, err) { | |
// this function is called for all uncaught errors | |
// if it returns true, the error will be ignored | |
// instead of being reported to Rollbar. | |
if (file && !file.match(/^https?:\/\/www\.mycompany\.com/)) { | |
// has a filename, but filename (url) is not on www.mycompany.com. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
224,225c224,225 | |
< 221 Main St Suite 780<br> | |
< San Francisco, CA 94105<br> | |
--- | |
> 51 Federal St Ste 401<br> | |
> San Francisco, CA 94107<br> | |
373,374c373,374 | |
< These Services are operated and provided by Rollbar Inc., a Delaware corporation, 221 Main Street, | |
< Suite 780, San Francisco, CA 94105. If you have any questions about these Terms, please <a | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
154c154 | |
< These Services are operated and provided by Rollbar Inc., a Delaware corporation, 414 Brannan St, San Francisco, CA 94107. If you have any questions about these Terms, please <a href="${request.route_url('about/contact')}">contact us</a>. | |
--- | |
> These Services are operated and provided by Rollbar Inc., a Delaware corporation, 221 Main Street, Suite 780, San Francisco, CA 94105. If you have any questions about these Terms, please <a href="${request.route_url('about/contact')}">contact us</a>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
require 'rollbar' | |
configure do | |
Rollbar.configure do |config| | |
config.access_token = 'aaaabbbbccccddddeeeeffff00001111' | |
config.environment = 'sinatra-test' | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'rollbar' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function runTest() { | |
console.log("making ajax call"); | |
$.ajax({ | |
url: "/failing" | |
}).fail(function(result) { | |
console.log("in fail"); | |
console.log("_rollbar:", _rollbar); | |
return _rollbar.push('TEST', function() { | |
console.log("in callback"); | |
return alert('TEST'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"event_name": "reactivated_item", | |
"data": { | |
"item": { | |
"status": 1, | |
"environment": "development", | |
"counter": 766, | |
"hash": "8a2dca9cc02fb27deee9dda24acb15532ee73dce", | |
"integrations_data": {}, | |
"title": "NameError: undefined local variable or method `bar' for #<HomeController:0x00000103ce4380>", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script> | |
var _rollbarParams = {"server.environment": "production"}; | |
_rollbarParams["notifier.snippet_version"] = "2"; var _rollbar=["client-side-token-here", _rollbarParams]; var _ratchet=_rollbar; | |
(function(w,d){w.onerror=function(e,u,l){_rollbar.push({_t:'uncaught',e:e,u:u,l:l});};var i=function(){var s=d.createElement("script");var | |
f=d.getElementsByTagName("script")[0];s.src="//d37gvrvc0wt4s1.cloudfront.net/js/1/rollbar.min.js";s.async=!0; | |
f.parentNode.insertBefore(s,f);};if(w.addEventListener){w.addEventListener("load",i,!1);}else{w.attachEvent("onload",i);}})(window,document); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/rollbar.php b/rollbar.php | |
index d36a09c..d392102 100644 | |
--- a/rollbar.php | |
+++ b/rollbar.php | |
@@ -663,6 +663,9 @@ class RollbarNotifier { | |
$url = $this->base_api_url . $action . '/'; | |
$ch = curl_init(); | |
+ curl_setopt($ch, CURLOPT_VERBOSE, true); | |
+ // add the following only if on php 5.3.2 or higher |