This file contains hidden or 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
| <script> | |
| var _rollbarConfig = { | |
| accessToken: "your token here", | |
| captureUncaught: true, | |
| payload: { | |
| environment: "production", // or development, etc. | |
| person: { | |
| id: "123", // required, a string | |
| username: "brian", // optional, a string | |
| email: "brian@rollbar.com" // optional, a string |
This file contains hidden or 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
| <script> | |
| _rollbarConfig = { | |
| accessToken: "token here", | |
| payload: { | |
| environment: "production", // or 'development', etc. | |
| person: { | |
| id: "123", // required if present, string up to 40 chars | |
| username: "brian", // optional, string up to 255 chars | |
| email: "brian@rollbar.com" // optional, string up to 255 chars | |
| }, |
This file contains hidden or 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
| 50.23.76.197 | |
| 198.23.74.34 | |
| 119.81.30.98 | |
| 37.58.71.74 | |
| 50.22.2.34 | |
| 119.81.30.99 | |
| 37.58.71.75 | |
| 75.126.67.75 | |
| 108.168.203.178 | |
| 192.155.197.237 |
This file contains hidden or 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
| [ | |
| { | |
| "title": "{{ default_title }} in version {{ client.android.code_version }}", | |
| "fingerprint": "{{ default_fingerprint }}-androidversion-{{ client.android.code_version }}", | |
| "condition": { | |
| "path": "framework", | |
| "eq": "android" | |
| } | |
| } | |
| ] |
This file contains hidden or 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
| [ | |
| { | |
| "title": "{{ body.trace.exception.class }} {{ body.trace.exception.message }}", | |
| "fingerprint": "{{ body.trace.exception.class }}-{{ body.trace.exception.message }}", | |
| "condition": { | |
| "path": "body.trace.exception.class", | |
| "eq": "ActionController::RoutingError" | |
| } | |
| } | |
| ] |
This file contains hidden or 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
| [{ | |
| "title": "{{ default_title }} {{ request.user_ip }} {{ request.context }}", | |
| "fingerprint": "{{ default_fingerprint }} {{ request.user_ip }} {{ request.context }}", | |
| "condition": { | |
| "path": "language", | |
| "eq": "ruby" | |
| } | |
| }] |
This file contains hidden or 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
| [{ | |
| "title": "{{ default_title }} {{ context }}", | |
| "fingerprint": "{{ default_fingerprint }} {{ context }}", | |
| "condition": { | |
| "path": "language", | |
| "eq": "ruby" | |
| } | |
| }] |
This file contains hidden or 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
| // you'll need a Rollbar account (rollbar.com) | |
| // and the rollbar.js snippet in your <head> tag, | |
| // from https://rollbar.com/docs/notifier/rollbar.js/ | |
| Ember.onerror = function(error) { | |
| Rollbar.error(error); | |
| } |
This file contains hidden or 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 ignoreRemoteUncaught(isUncaught, args, payload) { | |
| try { | |
| var filename = payload.data.body.trace.frames[0].filename; | |
| if (isUncaught && !filename.match(/^https?:\/\/www\.mycompany\.com/)) { | |
| // Ignore uncaught errors that are not from www.mycompany.com. | |
| return true; | |
| } | |
| } catch (e) { | |
| // Most likely there was no filename or the frame doesn't exist. | |
| } |
This file contains hidden or 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
| rollbar.reportMessageWithPayloadData("here is a string message", { | |
| level: "info", | |
| custom: { | |
| "foo": "bar", | |
| "other stuff": [1,2,3] | |
| } | |
| }); |