Integrating with Ember

Ember has a few different error handling integration points. The simplest is to just use the Ember.onerror callback. If you choose to also do some custom error handling in Ember.RSVP.onerror please be aware that the global Ember.onerror receives the same error data - so be careful not to double track!

Ember.onerror = function(error) {
    window.TrackJS && TrackJS.track(error);
}
TrackJS Ember Integration
import { TrackJS } from "trackjs";

Ember.onerror = function(error) {
    TrackJS.track(error);
}
TrackJS Ember Integration
Ember.onerror = function(error) {
    window.trackJs && trackJs.track(error);
}
TrackJS Ember Integration

Ember CLI Integration

If you’re currently using Ember CLI and would like to integrate with TrackJS, you’re in luck! There is an actively maintained Ember CLI package that will get you up in running in no time!