@dollarshaveclub/rollbar-check-ignore

[![CircleCI](https://circleci.com/gh/dollarshaveclub/rollbar-check-ignore/tree/master.svg?style=svg&circle-token=450c63d3b501a1f4d8cf83802d105b5f755360eb)](https://circleci.com/gh/dollarshaveclub/rollbar-check-ignore/tree/master) [![codecov](https://codec

Usage no npm install needed!

<script type="module">
  import dollarshaveclubRollbarCheckIgnore from 'https://cdn.skypack.dev/@dollarshaveclub/rollbar-check-ignore';
</script>

README

Rollbar checkIgnore

CircleCI codecov Greenkeeper badge

This implements Rollbar's checkIgnore function. Previous error checking was done with Sentry and was removed.

Implementation

This script can be added via script tags or inline via templates.

Script Tags

standalone.min.js can be added as a script tag, either src-ed or inlined.

<script>
_rollbarConfig = {

}
</script>
<script src="rollbar-check-ignore/dist/standalone.min.js" async></script>
<script>
// rollbar snippet
</script>

As this script is will become more complicated, async loading of the script is supported.

Inline via Templates

An inline function can be used withing templating system to add this script.

<script>
_rollbarConfig = {
  checkIgnore: {{ rollbar-check-ignore/dist/index.min.js }}
}
</script>