Title: Implement Node Core SDK · Issue #15213 · getsentry/sentry-javascript · GitHub
Open Graph Title: Implement Node Core SDK · Issue #15213 · getsentry/sentry-javascript
X Title: Implement Node Core SDK · Issue #15213 · getsentry/sentry-javascript
Description: Description Today, we have @sentry/node which out of the box comes with a lot of (OpenTelemetry-based) auto instrumentation. While this is the default experience we want for our users - e.g. no need to install further packages - it can b...
Open Graph Description: Description Today, we have @sentry/node which out of the box comes with a lot of (OpenTelemetry-based) auto instrumentation. While this is the default experience we want for our users - e.g. no nee...
X Description: Description Today, we have @sentry/node which out of the box comes with a lot of (OpenTelemetry-based) auto instrumentation. While this is the default experience we want for our users - e.g. no nee...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/15213
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Implement Node Core SDK","articleBody":"### Description\n\nToday, we have `@sentry/node` which out of the box comes with a lot of (OpenTelemetry-based) auto instrumentation.\n\nWhile this is the default experience we want for our users - e.g. no need to install further packages - it can be annoying for certain users:\n\n1. Users who do not care about performance monitoring, do not need to pull in all these node dependencies\n2. Users who have their own OTEL setup may run into problems with conflicts of versions\n3. Users who do not care about performance auto-instrumentation, for example if you instrument a CLI or similar things\n\nFor these users, we should look into providing an easier way to get the Sentry experience they deserve. For example, we could add a `@sentry/node-core` package, which is more or less the node package minus all the OTEL instrumentation packages. Then, the `@sentry/node` package could extend this and add the respective auto instrumentation. The `node-core` package would only register our own custom http & fetch instrumentation to get the core functionality we need working (this is already basically done for http, for fetch still TODO: [https://github.com/getsentry/sentry-javascript/issues/15212](https://github.com/getsentry/sentry-javascript/issues/15212))\n\nWith this, users could choose to do:\n\n```js\nimport * as Sentry from '@sentry/node-core';\n\nSentry.init({\n dsn: 'xxx', \n});\n```\n\nAnd would get a fully working Sentry instance, but without performance auto-instrumentation & otel instrumentation package dependencies.\n\nWe may also want to use this SDK to allow custom OTEL setups as well. This means that this SDK could ship without any otel packages as dependencies, instead requiring them as peer dependencies, making the setup slightly harder, but allowing more flexibility for users.\n\n## Notes / Thoughts\n\nSome additional pointers for implementation:\n\n* The node core SDK needs a `httpIntegration` & `fetchIntergation` which basically only register `SentryHttpInstrumentation` and `SentryNodeFetchInstrumentation`. The node SDK must extend these and register the additional otel instrumentations, as we already do today","author":{"url":"https://github.com/mydea","@type":"Person","name":"mydea"},"datePublished":"2025-01-29T08:50:59Z","url":"https://github.com/getsentry/sentry-javascript/issues/15213"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:055a0c35-7665-ab8c-b984-667e1b313faf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB44:15A861:66AD63:844ED5:6B03CA30 |
| html-safe-nonce | e67ca0b685e8d27e916d5c7a6499df99b49c9157923310a3357cac3918d2891c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjQ0OjE1QTg2MTo2NkFENjM6ODQ0RUQ1OjZCMDNDQTMwIiwidmlzaXRvcl9pZCI6Ijc0MDc1NzU1NDIyNTU1Njk0NTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7df304032846a7f4e6cc8580d3da57b3f4dc2e059f3b7bd6f53943ceb21c0a94 |
| hovercard-subject-tag | issue:2817588343 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/15213/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d46e46f6c5363142b75f958fa0bb7952701c67e2d20884ae8d23eb1a7c8fcd64/getsentry/sentry-javascript/issues/15213 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d46e46f6c5363142b75f958fa0bb7952701c67e2d20884ae8d23eb1a7c8fcd64/getsentry/sentry-javascript/issues/15213 |
| og:image:alt | Description Today, we have @sentry/node which out of the box comes with a lot of (OpenTelemetry-based) auto instrumentation. While this is the default experience we want for our users - e.g. no nee... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mydea |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width