Skip to content

feat(node-core): Add lightweight mode docs#16396

Merged
andreiborza merged 7 commits intomasterfrom
ab/node-light
Feb 16, 2026
Merged

feat(node-core): Add lightweight mode docs#16396
andreiborza merged 7 commits intomasterfrom
ab/node-light

Conversation

@andreiborza
Copy link
Copy Markdown
Member

DESCRIBE YOUR PR

This PR adds basic documentation for @sentry/node-core/light, the lightweight mode of @sentry/node-core.

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • Urgent deadline (GA date, etc.):
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

EXTRA RESOURCES

Readme of the SDK: https://github.com/getsentry/sentry-javascript/tree/develop/packages/node-core#lightweight-mode

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview, Comment Feb 16, 2026 2:27pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Preview Feb 16, 2026 2:27pm

Request Review

Comment on lines +59 to +62
### I don't need automatic spans/transactions

If you don't need spans emitted by OpenTelemetry instrumentation, you can use `@sentry/node-core` in [Lightweight Mode](./lightweight) without OpenTelemetry dependencies. You still get errors, logs, metrics, breadcrumbs, and more. This mode is experimental.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this would be nice in a dropdown, as not everyone needs to read the paragraph.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, this is in the overview of install methods. Tbh I don't even know if this is the right place to put this but it's the best I could think of atm.

If we put it in a dropdown I fear the discoverability suffers a lot. It's already kind of hidden in this page (can't see lightweight mode in the sidebar).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah makes sense! I expanded the rest of the file and I think it's better to just keep it like this.

Comment thread docs/platforms/javascript/common/install/lightweight.mdx Outdated
Comment thread docs/platforms/javascript/common/install/lightweight.mdx Outdated

Request isolation works automatically. No additional setup is needed — just make sure `Sentry.init()` is called before you create your HTTP server.

### Node.js < 22
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is < on purpose here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope 😅

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed.

| **Error tracking** | Yes | Yes |
| **Logs and metrics** | Yes | Yes |
| **Automatic spans** | Yes | No |
| **OpenTelemetry required** | Yes | No |
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be a bit unclear what "required" means here. As a user, I might come up with questioning "I need to add OpenTelemetry when I am using @sentry/node?".

Suggested change
| **OpenTelemetry required** | Yes | No |
| **OpenTelemetry auto-included** | Yes | No |

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I like that suggestion a lot.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated, I didn't accept the suggestion because of the table formatting.

Comment thread docs/platforms/javascript/common/install/lightweight.mdx Outdated
Co-authored-by: Sigrid <32902192+s1gr1d@users.noreply.github.com>
Comment thread docs/platforms/javascript/common/install/lightweight.mdx
andreiborza and others added 3 commits February 16, 2026 14:47
Co-authored-by: Sigrid <32902192+s1gr1d@users.noreply.github.com>
Co-authored-by: Sigrid <32902192+s1gr1d@users.noreply.github.com>
Comment thread docs/platforms/javascript/common/install/lightweight.mdx
@andreiborza andreiborza merged commit 6143a42 into master Feb 16, 2026
15 checks passed
@andreiborza andreiborza deleted the ab/node-light branch February 16, 2026 16:10
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants