()
| 28 | }, |
| 29 | |
| 30 | included() { |
| 31 | const app = this._findHost(); |
| 32 | const config = app.project.config(app.env); |
| 33 | const addonConfig = dropUndefinedKeys(config['@sentry/ember'] || {}); |
| 34 | |
| 35 | if (!isSerializable(addonConfig)) { |
| 36 | // eslint-disable-next-line no-console |
| 37 | console.warn( |
| 38 | `Warning: You passed a non-serializable config to \`ENV['@sentry/ember'].sentry\`. |
| 39 | Non-serializable config (e.g. RegExp, ...) can only be passed directly to \`Sentry.init()\`, which is usually defined in app/app.js. |
| 40 | The reason for this is that @embroider/macros, which is used under the hood to handle environment config, requires serializable configuration.`, |
| 41 | ); |
| 42 | } |
| 43 | |
| 44 | this.options['@embroider/macros'].setOwnConfig.sentryConfig = addonConfig; |
| 45 | |
| 46 | this._super.included.apply(this, arguments); |
| 47 | }, |
| 48 | |
| 49 | contentFor(type, config) { |
| 50 | const addonConfig = config['@sentry/ember'] || {}; |
nothing calls this directly
no test coverage detected