How to use the raven-js.setExtraContext 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 este / este / src / common / configureReporting.js View on Github external
const setExtraContext = (state, action) => {
    actions = [action, ...actions].slice(0, 100); // last 100 actions
    const context = contextWithoutPrivateData(state, actions);
    Raven.setExtraContext(context);
  };
github DefinitelyTyped / DefinitelyTyped / raven-js / raven-js-tests.ts View on Github external
RavenJS.captureMessage('Broken!');
RavenJS.captureMessage('Broken!', {tags: { key: "value" }});

RavenJS.showReportDialog({
    eventId: 0815,
    dsn:'1337asdf',
    user: {
        name: 'DefenitelyTyped',
        email: 'df@ts.ms'
    }
});

RavenJS.setTagsContext({ key: "value" });

RavenJS.setExtraContext({ foo: "bar" });
github getsentry / sentry-react-native / lib / RavenClient.js View on Github external
setExtraContext(extra) {
    Raven.setExtraContext(extra);
  }
github toolkit-for-ynab / toolkit-for-ynab / src / core / browser / background / background.js View on Github external
_initializeSentry() {
    const environment = getEnvironment();
    const context = {
      environment,
      release: this._browser.runtime.getManifest().version,
    };

    if (environment !== 'development') {
      Raven.config('https://119c2693bc2a4ed18052ef40ce4adc3c@sentry.io/1218490', context).install();
      Raven.setExtraContext(context);
    }
  }
github getsentry / sentry-javascript / packages / browser / lib / SentryBrowser.ts View on Github external
public async setExtraContext(extra?: { [key: string]: any }) {
    Raven.setExtraContext(extra);
    return this;
  }