New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-bugsnag

Package Overview
Dependencies
Maintainers
2
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-bugsnag

Integrates Bugsnag reporting service into your Ember CLI app.

  • 0.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
50
decreased by-39.02%
Maintainers
2
Weekly downloads
 
Created
Source

Ember-cli-bugsnag

Build Status

Installation

Install the addon:

ember install ember-cli-bugsnag

Configuration

There are two ways to configure ember-cli-bugsnag:

  1. Add POJO to config/environment:
{
  bugsnag: {
    apiKey: '',
    notifyReleaseStages: ['development', 'production']
  }
}
  1. Specify environment variables:
export BUGSNAG_API_KEY=''
export BUGSNAG_NOTIFY_RELEASE='development,production'

Configuration options:

  • config.bugsnag.apiKey / BUGSNAG_API_KEY -- required
  • config.bugsnag.notifyReleaseStages / BUGSNAG_NOTIFY_RELEASE -- optional, defaults to [] (never notify)
  • config.bugsnag.releaseStage / BUGSNAG_RELEASE_STAGE -- optional, defaults to config.environment
  • config.bugsnag.libraryUrl / BUGSNAG_LIBRARY_URL -- optional, defaults to 'https://d2wy8f7a9ursnm.cloudfront.net/bugsnag-2.min.js'. If you want to lock to a particular version of the Bugsnag reporter, you can set this to, e.g. '//d2wy8f7a9ursnm.cloudfront.net/bugsnag-2.4.8.min.js'. See Bugsnag: Advanced Hosting
  • config.currentRevision -- any string representing the current version of the app, e.g. "1b8ef2c7" or "v1.2.4", optional. ember-git-version provides this automatically.

Customization

In order to add custom meta data to errors reported to Bugsnag, define a helper method in app/utils/bugsnag.js that takes the error and the container as arguments, e.g.:

export function getMetaData(error, container) {
  return {
    // …some meta data
  };
}

ember-cli-bugsnag calls this method for every error and resports any data returned by it to Bugsnag as meta data for the respective error. The returned metaData should be formatted to correspond with tabs in your interface. E.g. for an account tab

return {
  account: {
    name: "Bugsnag",
    plan: "premium",
    beta_access: true
  }
};

See the Bugsnag docs for more information.

Keywords

FAQs

Package last updated on 17 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc