MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / included

Function included

packages/ember/index.js:30–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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\`.
39Non-serializable config (e.g. RegExp, ...) can only be passed directly to \`Sentry.init()\`, which is usually defined in app/app.js.
40The 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'] || {};

Callers

nothing calls this directly

Calls 4

isSerializableFunction · 0.85
dropUndefinedKeysFunction · 0.70
warnMethod · 0.65
applyMethod · 0.45

Tested by

no test coverage detected