You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Checks and warns if a framework isn't wrapped by opentelemetry.
@@ -30,17 +29,19 @@ export function ensureIsWrapped(
30
29
hasSpansEnabled(clientOptions)
31
30
){
32
31
consoleSandbox(()=>{
33
-
if(isCjs()){
34
-
// eslint-disable-next-line no-console
35
-
console.warn(
36
-
`[Sentry] ${name} is not instrumented. This is likely because you required/imported ${name} before calling \`Sentry.init()\`.`,
37
-
);
38
-
}else{
39
-
// eslint-disable-next-line no-console
40
-
console.warn(
41
-
`[Sentry] ${name} is not instrumented. Please make sure to initialize Sentry in a separate file that you \`--import\` when running node, see: https://docs.sentry.io/platforms/javascript/guides/${name}/install/esm/.`,
42
-
);
43
-
}
32
+
/*! rollup-include-cjs-only */
33
+
// eslint-disable-next-line no-console
34
+
console.warn(
35
+
`[Sentry] ${name} is not instrumented. This is likely because you required/imported ${name} before calling \`Sentry.init()\`.`,
36
+
);
37
+
/*! rollup-include-cjs-only-end */
38
+
39
+
/*! rollup-include-esm-only */
40
+
// eslint-disable-next-line no-console
41
+
console.warn(
42
+
`[Sentry] ${name} is not instrumented. Please make sure to initialize Sentry in a separate file that you \`--import\` when running node, see: https://docs.sentry.io/platforms/javascript/guides/${name}/install/esm/.`,
'[Sentry] express is not instrumented. This is likely because you required/imported express before calling `Sentry.init()`.',
31
+
'[Sentry] express is not instrumented. Please make sure to initialize Sentry in a separate file that you `--import` when running node, see: https://docs.sentry.io/platforms/javascript/guides/express/install/esm/.',
0 commit comments