Last updated May 16, 2018
This list has a new home. Please see https://docs.rollbar.com/docs
| select code_version, min(timestamp) | |
| from item_occurrence | |
| group by 1 |
| -- select all deploys | |
| select * from deploy; | |
| -- select main columns for all deploys of a specific revision | |
| select id, timestamp, environment, comment from deploy | |
| where revision = 'some git sha here' | |
| -- deploys of 'production' by revision, and when they were first and last deployed |
| var _rollbarConfig = { | |
| // force rollbar.js to load over HTTPS | |
| rollbarJsUrl: 'https://d37gvrvc0wt4s1.cloudfront.net/js/v1.2/rollbar.min.js', | |
| // force requests to api.rollbar.com to be made over HTTPS | |
| endpoint: 'https://api.rollbar.com/api/1/', | |
| // rest of your configuration here... | |
| accessToken: "12c99de67a444c229fca100e0967486f", | |
| captureUncaught: true, | |
| payload: { |
| select body.trace.exception.message, count(*) | |
| from item_occurrence | |
| where item.counter = 123456 | |
| group by 1 | |
| order by 2 desc |
| select * | |
| from item_occurrence | |
| where timestamp > unix_timestamp() - 86400 | |
| and request.params.some_key LIKE '%some_value%' |
| [ | |
| { | |
| "condition": { | |
| "path": "body.trace.frames.*.filename", | |
| "contains": "file://" | |
| }, | |
| "title": "Error on file://", | |
| "fingerprint": "error-on-local-filesystem" | |
| } | |
| ] |
| _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; |
| [{ | |
| "condition": {"all": [ | |
| {"path": "body.trace.exception.class", "eq": "Error"}, | |
| {"path": "framework", "eq": "node-js"} | |
| ]}, | |
| "title": "{{default_title}}", | |
| "fingerprint": "{{default_fingerprint}}-{{body.trace.exception.message}}" | |
| }] |
| 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; |
Last updated May 16, 2018
This list has a new home. Please see https://docs.rollbar.com/docs