Skip to content

Commit fb539f9

Browse files
authored
Update sentry.md
1 parent bbc481d commit fb539f9

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

content/recipes/sentry.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### Sentry
22

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.
44

55
#### Installation
66

@@ -15,7 +15,7 @@ $ npm install --save @sentry/nestjs @sentry/profiling-node
1515

1616
#### Basic Setup
1717

18-
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:
1919

2020
```typescript
2121
@@filename(instrument)
@@ -43,7 +43,7 @@ Sentry.init({
4343
```
4444

4545

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:
4747

4848

4949
```typescript
@@ -64,10 +64,7 @@ bootstrap();
6464

6565
```
6666

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:
7168

7269

7370
```typescript
@@ -121,4 +118,4 @@ Visit `/debug-sentry` in your application, and you should see the error appear i
121118

122119
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/).
123120

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

Comments
 (0)