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
'[Sentry] Connect is not instrumented. This is likely because you required/imported connect before calling `Sentry.init()`.',
56
-
);
55
+
if(isCjs()){
56
+
// eslint-disable-next-line no-console
57
+
console.warn(
58
+
'[Sentry] Connect is not instrumented. This is likely because you required/imported connect before calling `Sentry.init()`.',
59
+
);
60
+
}else{
61
+
// eslint-disable-next-line no-console
62
+
console.warn(
63
+
'[Sentry] Connect 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/connect/install/esm/.',
'[Sentry] Express is not instrumented. This is likely because you required/imported express before calling `Sentry.init()`.',
147
-
);
146
+
consoleSandbox(()=>{
147
+
if(isCjs()){
148
+
// eslint-disable-next-line no-console
149
+
console.warn(
150
+
'[Sentry] Express is not instrumented. This is likely because you required/imported express before calling `Sentry.init()`.',
151
+
);
152
+
}else{
153
+
// eslint-disable-next-line no-console
154
+
console.warn(
155
+
'[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/.',
'[Sentry] Fastify is not instrumented. This is likely because you required/imported fastify before calling `Sentry.init()`.',
109
-
);
108
+
consoleSandbox(()=>{
109
+
if(isCjs()){
110
+
// eslint-disable-next-line no-console
111
+
console.warn(
112
+
'[Sentry] Fastify is not instrumented. This is likely because you required/imported fastify before calling `Sentry.init()`.',
113
+
);
114
+
}else{
115
+
// eslint-disable-next-line no-console
116
+
console.warn(
117
+
'[Sentry] Fastify 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/fastify/install/esm/',
'[Sentry] Hapi is not instrumented. This is likely because you required/imported hapi before calling `Sentry.init()`.',
118
-
);
117
+
if(isCjs()){
118
+
// eslint-disable-next-line no-console
119
+
console.warn(
120
+
'[Sentry] Hapi is not instrumented. This is likely because you required/imported hapi before calling `Sentry.init()`.',
121
+
);
122
+
}else{
123
+
// eslint-disable-next-line no-console
124
+
console.warn(
125
+
'[Sentry] Hapi 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/hapi/install/esm/',
'[Sentry] Koa is not instrumented. This is likely because you required/imported koa before calling `Sentry.init()`.',
84
-
);
83
+
if(isCjs()){
84
+
// eslint-disable-next-line no-console
85
+
console.warn(
86
+
'[Sentry] Koa is not instrumented. This is likely because you required/imported koa before calling `Sentry.init()`.',
87
+
);
88
+
}else{
89
+
// eslint-disable-next-line no-console
90
+
console.warn(
91
+
'[Sentry] Koa 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/koa/install/esm/',
0 commit comments