Skip to content

Commit 57af9b1

Browse files
authored
docs(ember): Mention tracesSampleRate in Ember docs (#2932)
This should help new users get started faster by including what is needed for performance right away.
1 parent fdfb63f commit 57af9b1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/ember/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ Then add the following config to `config/environment.js`
2727
```javascript
2828
ENV['@sentry/ember'] = {
2929
sentry: {
30-
dsn: '__DSN__' // replace __DSN__ with your DSN
30+
dsn: '__DSN__' // replace __DSN__ with your DSN,
31+
tracesSampleRate: 1.0, // Be sure to lower this for your production environment
3132
}
3233
};
3334
```
34-
3535
### Usage
3636

3737
To use this SDK, call `InitSentryForEmber` before the application is initialized, in `app.js`. This will load Sentry config from `environment.js` for you.
@@ -74,6 +74,7 @@ Aside from configuration passed from this addon into `@sentry/browser` via the `
7474
};
7575
```
7676

77+
7778
### Performance
7879
#### Routes
7980
If you would like to capture `beforeModel`, `model`, `afterModel` and `setupController` times for one of your routes,
@@ -105,7 +106,7 @@ If you would like to change the runloop queue threshold, add the following to yo
105106
```
106107

107108
#### Components
108-
Non-glimmer component render times will automatically get captured.
109+
Non-glimmer component render times will automatically get captured.
109110

110111
If you would like to disable component render being instrumented, add the following to your config:
111112
```javascript

0 commit comments

Comments
 (0)