How to use the stackdriver-errors-js.StackdriverErrorReporter function in stackdriver-errors-js

To help you get started, we’ve selected a few stackdriver-errors-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 mikelambert / dancedeets-monorepo / server / assets / js / stackdriver-errors.js View on Github external
/**
 * Copyright 2016 DanceDeets.
 *
 * @flow
 */

import StackTrace from 'stacktrace-js';
import { StackdriverErrorReporter } from 'stackdriver-errors-js';

window.StackTrace = StackTrace;

const errorHandler = new StackdriverErrorReporter();
if (window.prodMode) {
  errorHandler.start({
    key: 'AIzaSyAvvrWfamjBD6LqCURkATAWEovAoBm1xNQ', // Website Key (referrer-locked)
    projectId: '911140565156',
  });
}
github all-of-us / workbench / ui / src / app / services / error-reporter.service.ts View on Github external
serverConfigService.getConfig().subscribe((config: ConfigResponse) => {
      if (!config.publicApiKeyForErrorReports) {
        return;
      }
      const r = new StackdriverErrorReporter();
      r.start({
        key: config.publicApiKeyForErrorReports,
        projectId: config.projectId,
      });
      this.stackdriverReporter = r;
      setStackdriverErrorReporter(r);
    });
  }

stackdriver-errors-js

Experimental client-side JavaScript library to report errors to Stackdriver Error Reporting

Apache-2.0
Latest version published 3 years ago

Package Health Score

59 / 100
Full package analysis

Popular stackdriver-errors-js functions