Sentry-javascript: No way to disable instrumentation

Created on 7 Dec 2018  路  1Comment  路  Source: getsentry/sentry-javascript

Package + Version

  • [x] @sentry/browser
  • [ ] @sentry/node
  • [ ] raven-js
  • [ ] raven-node _(raven for node)_
  • [ ] other:

Version:

4.4.1

Description

I just switched from raven-js to @sentry/browser. So far it's been a very mixed experience: the library is larger ( #1552 ) and the two settings we were relying on - autoBreadcrumbs: false and instrument: false were both changed without an upgrade guide. I was able to determine that beforeBreadcrumb: () => null should do the trick, but instrumentation looks like it's now by default _on, always_, and that's a problem for us.

Is there still a way to disable instrumentation _and_ breadcrumbs? What I want out of sentry is simply 'sourcemapped errors in a list', and unfortunately that has been getting harder to attain.

Most helpful comment

I think what you want is

Sentry.init({
...
defaultIntegrations: false
});

If this is set to false, Sentry acts as a Client to our API. Only the stuff you call with captureMessage / captureException shows up. No by default breadcrumb or error tracking.

>All comments

I think what you want is

Sentry.init({
...
defaultIntegrations: false
});

If this is set to false, Sentry acts as a Client to our API. Only the stuff you call with captureMessage / captureException shows up. No by default breadcrumb or error tracking.

Was this page helpful?
0 / 5 - 0 ratings