Skip to content

Commit dbe12dd

Browse files
authored
docs(nestjs): Update verify snippet for nestjs (#10774)
1 parent 551cea6 commit dbe12dd

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed
Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
```javascript {"onboardingOptions": {"performance": "1-4, 12"}}
2-
Sentry.startSpan({
3-
op: "test",
4-
name: "My First Test Span",
5-
}, () => {
6-
setTimeout(() => {
7-
try {
8-
foo();
9-
} catch (e) {
10-
Sentry.captureException(e);
11-
}
12-
}, 99);
13-
});
1+
```javascript
2+
@Get("/debug-sentry")
3+
getError() {
4+
throw new Error("My first Sentry error!");
5+
}
146
```

0 commit comments

Comments
 (0)