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
Click the button below, and view the sample error on the Sentry <atarget="_blank"href="https://sentry-sdks.sentry.io/issues/?project=4510187201757184">Issues Page</a>.
44
-
For more details about setting up Sentry, <atarget="_blank"
thrownewSentryExampleFrontendError("This error is raised on the frontend of the example page.");
69
+
awaitSentry.startSpan(
70
+
{
71
+
name: "Example Frontend/Backend Span",
72
+
op: "test",
73
+
},
74
+
async()=>{
75
+
constres=awaitfetch("/api/sentry-example-api");
76
+
if(!res.ok){
77
+
setHasSentError(true);
78
+
}
79
+
},
80
+
);
81
+
thrownewSentryExampleFrontendError(
82
+
"This error is raised on the frontend of the example page.",
83
+
);
61
84
}}
62
85
disabled={!isConnected}
63
86
>
64
-
<span>
65
-
Throw Sample Error
66
-
</span>
87
+
<span>Throw Sample Error</span>
67
88
</button>
68
89
69
90
{hasSentError ? (
70
-
<pclassName="success">
71
-
Error sent to Sentry.
72
-
</p>
91
+
<pclassName="success">Error sent to Sentry.</p>
73
92
) : !isConnected ? (
74
93
<divclassName="connectivity-error">
75
-
<p>It looks like network requests to Sentry are being blocked, which will prevent errors from being captured. Try disabling your ad-blocker to complete the test.</p>
94
+
<p>
95
+
It looks like network requests to Sentry are being blocked, which
96
+
will prevent errors from being captured. Try disabling your
0 commit comments