Skip to main content
The Sentry Ember SDK is an Ember addon that wraps @sentry/browser with Ember-specific functionality including automatic error capture and performance instrumentation.

Installation

Install as an Ember addon:

Basic Setup

Initialize Sentry in your app.js before the application initializes:

Configuration

Environment Configuration

Configure Ember-specific options in config/environment.js:

Performance Monitoring

Route Instrumentation

Instrument routes to track lifecycle hooks:
This tracks:
  • beforeModel hook duration
  • model hook duration
  • afterModel hook duration
  • setupController hook duration

Runloop Queue Instrumentation

The SDK automatically instruments Ember’s runloop queues:
Tracked queues:
  • sync - Synchronization queue
  • actions - Action queue
  • routerTransitions - Router transition queue
  • render - Render queue
  • afterRender - After render queue
  • destroy - Destroy queue

Component Instrumentation

Non-Glimmer components are automatically tracked:
Configuration:

Glimmer Component Tracking

For Glimmer components, enable component definition tracking:

Error Handling

Automatic Error Capture

Errors are automatically captured:

Manual Error Capture

Context & User Information

Setting User Context

Adding Context

Advanced Configuration

Custom Performance Tracking

Session Replay

Testing

When testing your Ember app with Sentry:

Supported Versions

  • Ember.js: v4.0 or above
  • Node.js: v14.18 or above

Best Practices

Route Instrumentation

Wrap routes with instrumentRoutePerformance to track lifecycle hooks.

Threshold Tuning

Adjust duration thresholds to focus on performance bottlenecks.

Component Tracking

Enable component definition tracking for Glimmer components.

Context

Set user and app context in your ApplicationRoute.

Configuration Reference

In app.js:

Next Steps

Source Maps

Upload source maps for production builds

Performance

Deep dive into performance monitoring

Session Replay

Set up session replay

Ember Guides

Ember.js official documentation