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
docs(node): Add setup instructions for pluggable integrations (#6099)
Previously, the documentation page for Node.js's "Pluggable Integrations" used the wrong import names and did not explain that the user must install a separate package. This commit fixes both of these issues.
Copy file name to clipboardExpand all lines: src/platforms/node/common/configuration/integrations/pluggable-integrations.mdx
+31-7Lines changed: 31 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,37 @@ redirect_from:
6
6
description: "Learn about the different pluggable integrations and how to enable them."
7
7
---
8
8
9
-
Pluggable integrations are integrations that can be additionally enabled to provide specific features. They're documented so you can understand what they do and enable them, if needed. To enable pluggable integrations, provide a new instance with your config to the `integrations` option. For example: `integrations: [new Sentry.Integrations.Modules()]`.
9
+
Pluggable integrations are integrations that can be additionally enabled to provide specific features. They're documented so you can understand what they do and enable them, if needed.
10
+
11
+
## Install
12
+
13
+
To enable pluggable integrations, install the package `@sentry/integrations`.
14
+
15
+
```shell
16
+
# Using yarn
17
+
yarn add @sentry/integrations
18
+
# Using npm
19
+
npm install --save @sentry/integrations
20
+
```
21
+
22
+
## Configure
23
+
24
+
After installation, you can import the integration and provide a new instance with your config to the `integrations` option.
This integration captures all `Console API` calls and redirects them to Sentry using `captureMessage` call.
18
42
It then re-triggers to preserve default native behavior.
@@ -27,13 +51,13 @@ Available options:
27
51
28
52
### Dedupe
29
53
30
-
_Import name: `Sentry.Integrations.Dedupe`_
54
+
_Import name: `Dedupe`_
31
55
32
56
This integration deduplicates certain events. It can be helpful if you're receiving many duplicate errors. Be aware that we will only compare stack traces and fingerprints.
33
57
34
58
### Debug
35
59
36
-
_Import name: `Sentry.Integrations.Debug`_
60
+
_Import name: `Debug`_
37
61
38
62
This integration allows you to inspect the contents of the processed event and `hint` object that will be passed to `beforeSend` or `beforeSendTransaction`. It will _always_ run as the last integration, no matter when it was registered.
This integration allows you to apply a transformation to each frame of the stack trace. In the streamlined scenario, it can be used to change the name of the file frame it originates from, or it can be fed with an iterated function to apply any arbitrary transformation.
74
98
@@ -81,6 +105,6 @@ For example, `C:\\Program Files\\Apache\\www` won't work, however, `/Program Fil
81
105
82
106
### Transaction
83
107
84
-
_Import name: `Sentry.Integrations.Transaction`_
108
+
_Import name: `Transaction`_
85
109
86
110
This integration tries to extract useful transaction names that will be used to distinguish the event from the rest. It walks through all stack trace frames and reads the first in-app frame's module and function name.
0 commit comments