How to use the raven-js.captureBreadcrumb function in raven-js

To help you get started, we’ve selected a few raven-js examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ngokevin / redux-raven-middleware / index.es6 View on Github external
return store => next => action => {
    const {
      actionTransformer = identity,
      stateTransformer = identity,
      logger = console.error.bind(console, '[redux-raven-middleware] Reporting error to Sentry:')
    } = options;
    try {
      Raven.captureBreadcrumb({
        category: 'redux',
        message: action.type
      });

      return next(action);
    } catch (err) {
      logger(err);

      // Send the report.
      Raven.captureException(err, {
        extra: {
          action: actionTransformer(action),
          state: stateTransformer(store.getState()),
        }
      });
    }
github willyb321 / media_mate / app / renderjs / downloader.js View on Github external
Raven.context(() => {
				Raven.captureBreadcrumb({
					data: {
						torrent
					}
				});
				db.insert({
					_id: torrent.link,
					magnet: torrent.link,
					title: torrent.title,
					tvdbID: torrent['tv:show_name']['#'],
					airdate: torrent['rss:pubdate']['#'],
					downloaded: false
				});
				callback();
			});
		}
github LINKIWI / orion-web / src / app / util / resource.js View on Github external
.then((resp) => resp.json().then(({ data: respData } = {}) => {
    Raven.captureBreadcrumb({
      message: 'Network resource call complete',
      category: 'resource',
      data: {
        request: {
          endpoint,
          method,
          data,
        },
        response: {
          data: respData,
          status: resp.status,
        },
      },
    });
    return cb(null, respData);
  }))
github getsentry / sentry-react-native / lib / RavenClient.js View on Github external
captureBreadcrumb(breadcrumb) {
    Raven.captureBreadcrumb(breadcrumb);
  }
github LedgerHQ / ledger-live-desktop / src / sentry / browser.js View on Github external
export const captureBreadcrumb = (o: *) => {
  Raven.captureBreadcrumb(o)
}
github teencode-org / teencode / src / js / utils / webAPI.js View on Github external
.catch(err => {
    Raven.captureBreadcrumb({
      message: `API Error ${path}`,
      data: {
        path: path,
        params: requestBody(data, method),
        data: data,
        method: method,
        url: url
      }
    })
    throw (err);
  });
}
github LINKIWI / orion-web / src / app / redux / middleware / error-reporter.js View on Github external
const errorReporter = (store) => (next) => (action) => {
  try {
    const result = next(action);

    Raven.captureBreadcrumb({
      message: 'State reduction in response to dispatched action',
      category: 'redux',
      data: {
        action,
        store: store.getState(),
      },
    });

    return result;
  } catch (err) {
    Raven.captureException(err, {
      extra: {
        action,
        store: store.getState(),
      },
    });
github getsentry / sentry-javascript / packages / browser / lib / SentryBrowser.ts View on Github external
return new Promise((resolve, reject) => {
      Raven.captureBreadcrumb(crumb);
      resolve(crumb);
    });
  }