Ember 2.x
If you're using Ember 2.x
, you can use Sentry's Ember integration.
To use Sentry with your Ember application, you will need to use Sentry’s browser JavaScript SDK: @sentry/browser
.
On its own, @sentry/browser
will report any uncaught exceptions triggered from your application.
To use ESM imports without any additional configuration, you can use ember-auto-import
by installing it with ember install ember-auto-import
.
Starting with version 5.x
our Ember
integration lives in its own @sentry/integrations
package.
Install the package using either npm
or yarn
:
Copied
npm install --save @sentry/integrations
Then add to your app.js
:
Copied
import * as Sentry from "@sentry/browser";
import { Ember as EmberIntegration } from "@sentry/integrations";
Sentry.init({
dsn: "https://examplePublicKey@o0.ingest.sentry.io/0",
integrations: [new EmberIntegration()],
});
If you are using the CDN version or the Loader, we provide a standalone file for every integration, to set it up check out our CDN documentation
- Package:
- npm:@sentry/browser
- Version:
- 8.24.0
- Repository:
- https://github.com/getsentry/sentry-javascript