@sentry/node-native 11.0.0 → 11.2.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 CHANGED
@@ -10,59 +10,14 @@
10
10
  [![npm dm](https://img.shields.io/npm/dm/@sentry/node-native.svg)](https://www.npmjs.com/package/@sentry/node-native)
11
11
  [![npm dt](https://img.shields.io/npm/dt/@sentry/node-native.svg)](https://www.npmjs.com/package/@sentry/node-native)
12
12
 
13
- ## Installation
13
+ Native tools for the Sentry Node.js SDK.
14
14
 
15
- ```bash
16
- # Using yarn
17
- yarn add @sentry/node @sentry/node-native
15
+ ## Documentation
18
16
 
19
- # Using npm
20
- npm install --save @sentry/node @sentry/node-native
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
- ## `eventLoopBlockIntegration`
20
+ ## Support
24
21
 
25
- The `eventLoopBlockIntegration` can be used to monitor for blocked event loops in
26
- all threads of a Node.js application.
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)
@@ -1 +1 @@
1
- {"type":"module","version":"11.0.0","sideEffects":false}
1
+ {"type":"module","version":"11.2.0","sideEffects":false}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/node-native",
3
- "version": "11.0.0",
3
+ "version": "11.2.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.0.0",
60
- "@sentry/node": "11.0.0"
59
+ "@sentry/core": "11.2.0",
60
+ "@sentry/node": "11.2.0"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@types/node": "^18.19.1"