@sentry/node-native 11.0.0 → 11.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -52
- package/build/esm/package.json +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -10,59 +10,14 @@
|
|
|
10
10
|
[](https://www.npmjs.com/package/@sentry/node-native)
|
|
11
11
|
[](https://www.npmjs.com/package/@sentry/node-native)
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Native tools for the Sentry Node.js SDK.
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
# Using yarn
|
|
17
|
-
yarn add @sentry/node @sentry/node-native
|
|
15
|
+
## Documentation
|
|
18
16
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
```
|
|
17
|
+
- [Event loop monitoring](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/event-loop-block/)
|
|
18
|
+
- [Configuration](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/event-loop-block/#configuration-options)
|
|
22
19
|
|
|
23
|
-
##
|
|
20
|
+
## Support
|
|
24
21
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
If you instrument your application via the Node.js `--import` flag, Sentry will
|
|
29
|
-
be started and this instrumentation will be automatically applied to all worker
|
|
30
|
-
threads.
|
|
31
|
-
|
|
32
|
-
`instrument.mjs`
|
|
33
|
-
|
|
34
|
-
```javascript
|
|
35
|
-
import * as Sentry from '@sentry/node';
|
|
36
|
-
import { eventLoopBlockIntegration } from '@sentry/node-native';
|
|
37
|
-
|
|
38
|
-
Sentry.init({
|
|
39
|
-
dsn: '__YOUR_DSN__',
|
|
40
|
-
// Capture stack traces when the event loop is blocked for more than 500ms
|
|
41
|
-
integrations: [eventLoopBlockIntegration({ threshold: 500 })],
|
|
42
|
-
});
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
`app.mjs`
|
|
46
|
-
|
|
47
|
-
```javascript
|
|
48
|
-
import { Worker } from 'worker_threads';
|
|
49
|
-
|
|
50
|
-
const worker = new Worker(new URL('./worker.mjs', import.meta.url));
|
|
51
|
-
|
|
52
|
-
// This main thread will be monitored for blocked event loops
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
`worker.mjs`
|
|
56
|
-
|
|
57
|
-
```javascript
|
|
58
|
-
// This worker thread will also be monitored for blocked event loops too
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
Start your application:
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
|
-
node --import instrument.mjs app.mjs
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
If a thread is blocked for more than the configured threshold, stack traces will
|
|
68
|
-
be captured for all threads and sent to Sentry.
|
|
22
|
+
- [Report a bug](https://github.com/getsentry/sentry-javascript/issues/new/choose)
|
|
23
|
+
- [Contributing](https://github.com/getsentry/sentry-javascript/blob/develop/CONTRIBUTING.md)
|
package/build/esm/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"11.
|
|
1
|
+
{"type":"module","version":"11.1.0","sideEffects":false}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/node-native",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.1.0",
|
|
4
4
|
"description": "Native Tools for the Official Sentry Node.js SDK",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/node-native",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@sentry/node-native-stacktrace": "^0.5.1",
|
|
59
|
-
"@sentry/core": "11.
|
|
60
|
-
"@sentry/node": "11.
|
|
59
|
+
"@sentry/core": "11.1.0",
|
|
60
|
+
"@sentry/node": "11.1.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@types/node": "^18.19.1"
|