Skip to content

docs(ember): Mention tracesSampleRate in Ember docs #2932

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions packages/ember/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ Then add the following config to `config/environment.js`
```javascript
ENV['@sentry/ember'] = {
sentry: {
dsn: '__DSN__' // replace __DSN__ with your DSN
dsn: '__DSN__' // replace __DSN__ with your DSN,
tracesSampleRate: 1.0, // Be sure to lower this for your production environment
}
};
```

### Usage

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


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

#### Components
Non-glimmer component render times will automatically get captured.
Non-glimmer component render times will automatically get captured.

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