message: docs(ember): improve docs for configuring the ember SDK
diff: @@ -54,15 +54,47 @@ export default class App extends Application {
  ### Additional Configuration
  -Aside from configuration passed from this addon into `@sentry/browser` via the `sentry` property, there is also the following Ember specific configuration.
  +Aside from configuration passed from this addon into `@sentry/browser` via the `sentry` property, there is also the following Ember specific configuration:
  ```javascript
  ENV['@sentry/ember'] = {
  - ignoreEmberOnErrorWarning: false, // Will silence Ember.onError warning without the need of using Ember debugging tools. False by default.
  - sentry: ... // See sentry-javascript configuration https://docs.sentry.io/error-reporting/configuration/?platform=javascript
  + // Will silence Ember.onError warning without the need of using Ember debugging tools.
  + ignoreEmberOnErrorWarning: false,
  +
  + // Will disable automatic instrumentation of performance.
  + // Manual instrumentation will still be sent.
  + disablePerformance: true,
  +
  + // All runloop queue durations will be added as spans.
  + minimumRunloopQueueDuration: 0,
  +
  + // Will disable automatic instrumentation for components.
  + disableInstrumentComponents: true,
  +
  + // All (non-glimmer) component render durations will be added as spans.
  + minimumComponentRenderDuration: 0,
  +
  + // All component definitions will be added as spans.
  + enableComponentDefinition: true,
  +
  + // See sentry-javascript configuration https://docs.sentry.io/error-reporting/configuration/?platform=javascript
  + sentry: {}
  };
  ```
  +You can also pass additional configuration for sentry-javascript directly to the `InitSentryForEmber` method.
  +This configuration will be merged with `ENV['@sentry/ember'].sentry`:
  +
  +```javascript
  +InitSentryForEmber({
  + ignoreErrors: [
  + /You appear to be offline/,
  + ],
  +})
  +```
  +
  +It is recommended to pass all static sentry-javascript configuration directly to `InitSentryForEmber`, and only keeping configuration that depends on the build environment/secrets in `config/environment.js`. Please note that due to how the environment config is serialized, any non-JSON-serializable config (like a regex) will not work properly when being kept in `config/environment.js`.
  +
  #### Disabling Performance
  `@sentry/ember` captures performance by default, if you would like to disable the automatic performance instrumentation, you can add the following to your `config/environment.js`:
  @@ -70,7 +102,6 @@ Aside from configuration passed from this addon into `@sentry/browser` via the `
  ```javascript
  ENV['@sentry/ember'] = {
  disablePerformance: true, // Will disable automatic instrumentation of performance. Manual instrumentation will still be sent.
  - sentry: ... // See sentry-javascript configuration https://docs.sentry.io/error-reporting/configuration/?platform=javascript
  };
  ```
  