@sentry/browser with Ember-specific functionality including automatic error capture and performance instrumentation.
Installation
Install as an Ember addon:Basic Setup
Initialize Sentry in yourapp.js before the application initializes:
Configuration
Environment Configuration
Configure Ember-specific options inconfig/environment.js:
Performance Monitoring
Route Instrumentation
Instrument routes to track lifecycle hooks:beforeModelhook durationmodelhook durationafterModelhook durationsetupControllerhook duration
Runloop Queue Instrumentation
The SDK automatically instruments Ember’s runloop queues:sync- Synchronization queueactions- Action queuerouterTransitions- Router transition queuerender- Render queueafterRender- After render queuedestroy- Destroy queue
Component Instrumentation
Non-Glimmer components are automatically tracked: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
Breadcrumbs
Advanced Configuration
- Disable Performance
- Fine-tune Thresholds
- Enable All Tracking
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
All Configuration Options
All Configuration Options
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