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
Copy file name to clipboardExpand all lines: content/recipes/sentry.md
+5-8Lines changed: 5 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
### Sentry
2
2
3
-
[Sentry](https://sentry.io) is an error monitoring and performance tracking platform that helps developers identify and fix issues in real-time. This recipe shows how to integrate Sentry with your NestJS application for error monitoring and distributed tracing.
3
+
[Sentry](https://sentry.io) is an error tracking and performance monitoring platform that helps developers identify and fix issues in real-time. This recipe shows how to integrate Sentry with your NestJS application.
To get started with Sentry, you'll need to create an initialization file (e.g., `sentry.init.ts`) that should be imported before any other modules in your application:
18
+
To get started with Sentry, you'll need to create a file named `instrument.js` that should be imported before any other modules in your application:
19
19
20
20
```typescript
21
21
@@filename(instrument)
@@ -43,7 +43,7 @@ Sentry.init({
43
43
```
44
44
45
45
46
-
Update your `main.ts` file to import the Sentry initialization before other imports:
46
+
Update your `main.ts` file to import `instrume.js` before other imports:
47
47
48
48
49
49
```typescript
@@ -64,10 +64,7 @@ bootstrap();
64
64
65
65
```
66
66
67
-
68
-
#### Module Integration
69
-
70
-
Add the SentryModule to your application's root module:
67
+
Afterward, add the `SentryModule` as a root module to your main module:
71
68
72
69
73
70
```typescript
@@ -121,4 +118,4 @@ Visit `/debug-sentry` in your application, and you should see the error appear i
121
118
122
119
For complete documentation about Sentry's NestJS SDK, including advanced configuration options and features, visit the [official Sentry documentation](https://docs.sentry.io/platforms/javascript/guides/nestjs/).
123
120
124
-
While software bugs are Sentry's thing, we still write them. If you come across any problems while installing our SDK, please open a [GitHub Issue](https://github.com/getsentry/sentry-javascript/issues) or reach out on [Discord](https://discord.com/invite/sentry).
121
+
While software bugs are Sentry's thing, we still write them. If you come across any problems while installing our SDK, please open a [GitHub Issue](https://github.com/getsentry/sentry-javascript/issues) or reach out on [Discord](https://discord.com/invite/sentry).
0 commit comments