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: Node profiling enhances tracing by providing profiles for individual transactions
4
+
position: 25
5
+
category: Guide
6
+
---
7
+
8
+
Node profiling can be enabled through an integration provided by the `@sentry/profiling-node` dependency that does not come with this module by default.
9
+
10
+
### Setup
11
+
12
+
Install required dependency:
13
+
14
+
<code-group>
15
+
<code-blocklabel="Yarn"active>
16
+
17
+
```bash
18
+
yarn add @sentry/profiling-node
19
+
```
20
+
21
+
</code-block>
22
+
<code-blocklabel="NPM">
23
+
24
+
```bash
25
+
npm install @sentry/profiling-node
26
+
```
27
+
28
+
</code-block>
29
+
</code-group>
30
+
31
+
Include the following options in the module's configuration:
32
+
33
+
```js [nuxt.config.js]
34
+
sentry: {
35
+
dsn:'...',
36
+
tracing: {
37
+
tracesSampleRate:1.0,
38
+
},
39
+
serverIntegrations: {
40
+
ProfilingIntegration: {},
41
+
},
42
+
serverConfig: {
43
+
// Set sampling rate for profiling - this is relative to tracesSampleRate
44
+
profilesSampleRate:1.0,
45
+
},
46
+
}
47
+
```
48
+
49
+
<alerttype="info">
50
+
51
+
Note that the `tracesSampleRate` value can be between 0.0 and 1.0 (percentage of requests to capture) and Sentry documentation strongly recommends reducing the value from the default 1.0.
52
+
53
+
</alert>
54
+
55
+
### Documentation
56
+
57
+
See Sentry's [Profiling](https://docs.sentry.io/platforms/node/profiling/) pages for additional information.
0 commit comments