Skip to content

Instantly share code, notes, and snippets.

View brianr's full-sized avatar

Brian Rue brianr

View GitHub Profile
@brianr
brianr / example.js
Last active January 14, 2023 01:20
rollbar.js - Ignore error types using checkIgnore
// List of error class names to ignore
var ROLLBAR_IGNORED_CLASS_NAMES = ['ReferenceError'];
var _rollbarConfig = {
accessToken: '<your access token>',
captureUncaught: true,
captureUnhandledRejections: true,
payload: {
environment: '<your env name>'
},
# ensure you have rollbar in your Gemfile, e.g.: gem 'rollbar'
require 'rollbar'
Rollbar.configure do |config|
# configure with your project access token (a post_server_item token from the rollbar setup UI)
config.access_token = 'your_token_here'
# To only log internal ERROR-level internal messages from rollbar-gem
config.logger_level = 'error' # default is 'info', meaning INFO and above
@brianr
brianr / privacy-2019-03-29.diff
Created March 15, 2019 22:46
diff of Rollbar Privacy Policy changes for 3/29/19
1c1
< _Effective: May 25, 2018_
---
> _Effective: March 29, 2019_
82c82
< In the case of entities based in other countries outside the EEA, entering into European Commission approved standard contractual arrangements with them. Rollbar complies with the EU-U.S. and Swiss–U.S. Privacy Shield Frameworks as set forth by the U.S. Department of Commerce regarding the collection, use, and retention of personal information transferred from the European Union, the European Economic Area, and Switzerland to the United States. You can find Rollbar’s Privacy Shield certification [here](https://www.privacyshield.gov/participant?id=a2zt0000000TNcNAAW&status=Active). You can also learn more about Privacy Shield at [https://www.privacyshield.gov](https://www.privacyshield.gov).
---
> * In the case of entities based in other countries outside the EEA, entering into European Commission approved standard contractual arrangements with them. Rollbar complies with the EU-U.S. and Swiss–U.S. Privacy Shield Frameworks as set forth
@brianr
brianr / privacy-2018-05-25.diff
Created May 30, 2018 02:21
diff of Rollbar Privacy Policy changes for 5/25/18
1c1
< _Effective: October 17, 2016_
---
> _Effective: May 25, 2018_
3c3
< This Privacy Policy describes how and when Rollbar collects, uses and shares your information when you use our Services. Rollbar receives your information through our various websites, APIs, email notifications, integrations, and applications (the **"Services"** or **"Rollbar"**) and from our partners and other third parties. When using any of our Services you consent to the collection, transfer, manipulation, storage, disclosure and other uses of your information as described in this Privacy Policy. Irrespective of which country you reside in or supply information from, you authorize Rollbar to use your information in the United States and any other country where Rollbar operates.
---
> This Privacy Policy describes how and when Rollbar collects, uses and shares your information when you use our Services. Rollbar receives your information through our various websites, APIs, email notifications, integrations, and applications (the **"Se
@brianr
brianr / tos-2018-05-25.diff
Created May 30, 2018 02:16
diff of Rollbar Terms of Service changes for 5/25/18
1c1
< _Effective: March 6, 2017_
---
> _Effective: May 25, 2018_
3c3
< These Terms of Service (**"Terms"**) govern your access to and use of the services, including our various websites, APIs, email notifications, and applications (the **"Services"** or **"Rollbar"**), and any information, text, graphics, photos or other materials uploaded, downloaded or appearing on the Services (collectively referred to as "Content"). Your access to and use of the Services are conditioned on your acceptance of and compliance with these Terms. By accessing or using the Services you agree to be bound by these Terms.
---
> Welcome to Rollbar.com, the website and online service of Rollbar, Inc. (“Rollbar,” “we,” or “us”). This page explains the terms by which you may use our online and/or mobile services, web sites, APIs, SDKs, email notifications, and Software (as defined in 1(c) below) provided on or in connection with the service (collectively, the “Services”). Your access to and use of the Services are conditioned on your a
@brianr
brianr / example.json
Created September 14, 2017 02:42
rollbar custom fingerprinting config to group all javascript errors by message
[
{
"condition": {"all": [
{"path": "body", "contains": "message"},
{"path": "language", "eq": "javascript"}
]},
"fingerprint": "{{body.message.body}}"
},
{
"condition": {"all": [
@brianr
brianr / tos-2017-03-06.diff
Created March 6, 2017 23:03
diff of Rollbar Terms of Service changes for 3/6/17
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
---
@brianr
brianr / v4.diff
Created April 27, 2016 00:05
Rollbar Terms of Service - Diff of 12/15/2014 revision vs. 4/16/2016
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>.
@brianr
brianr / README.md
Last active May 17, 2018 00:07
Rollbar IP addresses
@brianr
brianr / NamedError.js
Created July 24, 2015 21:22
NamedError - easily set the error 'name' property without defining a new class
function NamedError(name, message, extra) {
Error.captureStackTrace(this, this.constructor);
this.name = name;
this.message = message;
this.extra = extra;
};
require('util').inherits(NamedError, Error);
module.exports = NamedError;