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
Copy file name to clipboardExpand all lines: packages/node-core/README.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,13 +118,17 @@ NODE_OPTIONS="--import ./instrument.mjs" npm run start
118
118
119
119
## Lightweight Mode
120
120
121
+
> [!WARNING]
121
122
> **⚠️ Experimental**: The `@sentry/node-core/light` subpath export is experimental and may receive breaking changes in minor or patch releases.
122
123
123
-
If you don't need automatic spans/transactions, you can use the lightweight mode which doesn't require OpenTelemetry dependencies. This mode is ideal for:
124
+
> [!IMPORTANT]
125
+
> This SDK requires Node 22.12.0+ for full functionality. If you're using lower Node versions, this SDK only offers limited tracing support. Consider using `@sentry/node` or `@sentry/node-core` instead.
124
126
125
-
- Applications that don't need automatic performance monitoring
126
-
- Reducing bundle size and runtime overhead
127
-
- Environments where OpenTelemetry isn't needed
127
+
If you don't need automatic spans/transactions, you can use the lightweight mode which doesn't require OpenTelemetry dependencies. This mode is ideal for when:
128
+
129
+
- you only need error tracking, logs or metrics without tracing data (no spans)
130
+
- you want to minimize bundle size and runtime overhead
131
+
- you don't need spans emitted by OpenTelemetry instrumentation
If you're using Node.js versions below 22, automatic request isolation is not available. You'll need to manually wrap your request handlers with `withIsolationScope`:
207
+
If you're using Node.js versions below 22.12.0, automatic request isolation is not available. You'll need to manually wrap your request handlers with `withIsolationScope`:
- Manual isolation prevents scope data leakage between requests
230
234
- However, **distributed tracing will not work correctly** - incoming `sentry-trace` and `baggage` headers won't be automatically extracted and propagated
231
-
- For full distributed tracing support, use Node.js 22+ or the full `@sentry/node` SDK with OpenTelemetry
235
+
- For full distributed tracing support, use Node.js 22.12.0+ or the full `@sentry/node` SDK with OpenTelemetry
0 commit comments