-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(profiling): add support for enabling Profiling integration (#577)
- Loading branch information
Showing
6 changed files
with
436 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
title: Profiling | ||
description: Node profiling enhances tracing by providing profiles for individual transactions | ||
position: 25 | ||
category: Guide | ||
--- | ||
|
||
Node profiling can be enabled through an integration provided by the `@sentry/profiling-node` dependency that does not come with this module by default. | ||
|
||
### Setup | ||
|
||
Install required dependency: | ||
|
||
<code-group> | ||
<code-block label="Yarn" active> | ||
|
||
```bash | ||
yarn add @sentry/profiling-node | ||
``` | ||
|
||
</code-block> | ||
<code-block label="NPM"> | ||
|
||
```bash | ||
npm install @sentry/profiling-node | ||
``` | ||
|
||
</code-block> | ||
</code-group> | ||
|
||
Include the following options in the module's configuration: | ||
|
||
```js [nuxt.config.js] | ||
sentry: { | ||
dsn: '...', | ||
tracing: { | ||
tracesSampleRate: 1.0, | ||
}, | ||
serverIntegrations: { | ||
ProfilingIntegration: {}, | ||
}, | ||
serverConfig: { | ||
// Set sampling rate for profiling - this is relative to tracesSampleRate | ||
profilesSampleRate: 1.0, | ||
}, | ||
} | ||
``` | ||
|
||
<alert type="info"> | ||
|
||
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. | ||
|
||
</alert> | ||
|
||
### Documentation | ||
|
||
See Sentry's [Profiling](https://docs.sentry.io/platforms/node/profiling/) pages for additional information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.