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
description: Learn how to manually set up Sentry in your Deno app and capture your first errors.
3
4
sdk: sentry.javascript.deno
4
5
categories:
5
6
- javascript
@@ -10,31 +11,44 @@ categories:
10
11
11
12
<Alert>
12
13
13
-
The Deno SDK is currently in Beta.
14
+
This SDK is currently in **beta**. Beta features are still in progress and may have bugs. Please reach out on [GitHub](https://github.com/getsentry/sentry-javascript/issues/new/choose) if you have any feedback or concerns
In addition to capturing errors, you can monitor interactions between multiple services or applications by [enabling tracing](/concepts/key-terms/tracing/).
Select which Sentry features you'd like to install in addition to Error Monitoring to get the corresponding installation and configuration instructions below.
This snippet includes an intentional error, so you can test that everything is working as soon as you set it up.
92
+
## Step 4: Verify Your Setup
87
93
88
-
Verify your setup by adding the following snippet anywhere in your code and running it:
94
+
Let's test your setup and confirm that Sentry is working correctly and sending data to your Sentry project.
95
+
96
+
### Issues
97
+
98
+
First, let's verify that Sentry captures errors and creates issues in your Sentry project. Add the following code snippet to your main application file, which will call an undefined function, triggering an error that Sentry will capture:
89
99
90
100
```javascript
91
101
setTimeout(() => {
92
-
thrownewError();
102
+
try {
103
+
foo();
104
+
} catch (e) {
105
+
Sentry.captureException(e);
106
+
}
107
+
}, 99);
108
+
```
109
+
110
+
<OnboardingOptionoptionId="performance">
111
+
### Tracing
112
+
To test your tracing configuration, update the previous code snippet by starting a trace to measure the time it takes for the execution of your code:
113
+
```javascript
114
+
Sentry.startSpan({
115
+
op:"test",
116
+
name:"My First Test Transaction",
117
+
}, () => {
118
+
setTimeout(() => {
119
+
try {
120
+
foo();
121
+
} catch (e) {
122
+
Sentry.captureException(e);
123
+
}
124
+
}, 99);
93
125
});
94
126
```
127
+
</OnboardingOption>
95
128
96
-
<Alert>
129
+
### View Captured Data in Sentry
97
130
98
-
Learn more about manually capturing an error or message in our <PlatformLinkto="/usage/">Usage documentation</PlatformLink>.
131
+
Finally, head over to your project on [Sentry.io](https://sentry.io/) to view the collected data (it takes a couple of moments for the data to appear).
To view and resolve the recorded error, log into [sentry.io](https://sentry.io) and select your project. Clicking on the error's title will open a page where you can see detailed information and mark it as resolved.
<Expandabletitle="Need help locating the captured errors in your Sentry project?">
2
+
3
+
1. Open the [**Issues**](https://sentry.io/issues) page and select an error from the issues list to view the full details and context of this error. For more details, see this [interactive walkthrough](/product/sentry-basics/integrate-frontend/generate-first-error/#ui-walkthrough).
4
+
2. Open the [**Traces**](https://sentry.io/explore/traces) page and select a trace to reveal more information about each span, its duration, and any errors. For an interactive UI walkthrough, click [here](/product/sentry-basics/distributed-tracing/generate-first-error/#ui-walkthrough).
5
+
3. Open the [**Logs**](https://sentry.io/explore/logs) page and filter by service, environment, or search keywords to view log entries from your application. For an interactive UI walkthrough, click [here](/product/explore/logs/#overview).
0 commit comments