How to use the raven-js.setRelease 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 travis-ci / travis-web / app / instance-initializers / raven-release.js View on Github external
export function initialize(appInstance) {
  let sha;
  // this is Heroku-specific, will not work in other environments
  if (config.environment === 'production') {
    sha = config.release.slice(0, 7);
  } else {
    sha = appInstance.application.version.slice(6, -1);
  }

  let env = window.location.href;
  let domain = env.includes('.org') ? 'org' : 'com';
  let release = `${domain}-${sha}`;

  Raven.setRelease(release);
}
github getsentry / sentry-javascript / packages / browser / lib / SentryBrowser.ts View on Github external
public async setRelease(release: string) {
    Raven.setRelease(release);
    return this;
  }
}
github getsentry / sentry-react-native / lib / RavenClient.js View on Github external
setRelease(release) {
    Raven.setRelease(release);
  }