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
const result = await Sentry.diagnoseSdkConnectivity();
245
+
setIsConnected(result !== 'sentry-unreachable');
246
+
}
247
+
checkConnectivity();
248
+
}, []);
240
249
241
250
return (
242
251
<div>
@@ -283,11 +292,16 @@ export default function Page() {
283
292
<p className="success">
284
293
Sample error was sent to Sentry.
285
294
</p>
295
+
) : !isConnected ? (
296
+
<div className="connectivity-error">
297
+
<p>The Sentry SDK is not able to reach Sentry right now - this may be due to an adblocker. For more information, see <a target="_blank" href="https://docs.sentry.io/platforms/javascript/guides/nextjs/troubleshooting/#the-sdk-is-not-sending-any-data">the troubleshooting guide</a>.</p>
298
+
</div>
286
299
) : (
287
300
<div className="success_placeholder" />
288
301
)}
289
302
290
303
<div className="flex-spacer" />
304
+
291
305
<p className="description">
292
306
Adblockers will prevent errors from being sent to Sentry.
293
307
</p>
@@ -388,6 +402,22 @@ export default function Page() {
0 commit comments