1.2.7 • Published 5 years ago

eflex-ember-cli-raygun v1.2.7

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Ember CLI Raygun

Build Status Ember Observer Score

This addon will allow you to report errors to Raygun from your Ember CLI app using raygun4js

Note: This add on is currently in Beta! You may hit issues - please open an issue on Github if you have any problems! :heart:

Installation

It's as easy as:

$ ember install ember-cli-raygun

Now set your Raygun API Key (available under "Application Settings" in your Raygun Account) in config/environment.js

// config/environment.js
var ENV = {
  // ...
  raygun: {
    apiKey:  "YOUR-RAYGUN-API-KEY",
    enabled: (environment === "production")
  }
  // ...

Congratulations! You can now track and fix your errors once you deploy your app. (By default Ember CLI Raygun is disabled unless your environment is set to "production" - you can configure that behaviour in config/environment.js)

Affected User Tracking

Check out the Affected User Tracking section in the raygun4js documentation for full details.

You potentially want something like the following in your application route:

// app/routes/application.js
// ...
  beforeModel: () {
    this.setRaygunUser();
  },

  setRaygunUser: () {
    // assuming you have a currentUser property available...
    Raygun.setUser(
      this.get("user.id"),
      false,
      this.get("user.email"),
      this.get("user.fullName"),
      this.get("user.firstName"),
    );    
  },
// ...

Contributing

Pull requests are welcome!

  • git clone this repository
  • npm install
  • bower install

Running tests

  • ember test OR
  • ember test --server
1.2.7

5 years ago

1.2.6

6 years ago

1.2.5

6 years ago

1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago