{"name":"@sentry/node","version":"9.0.0-alpha.0","author":{"name":"Sentry"},"license":"MIT","_id":"@sentry/node@9.0.0-alpha.0","homepage":"https://github.com/getsentry/sentry-javascript/tree/master/packages/node","bugs":{"url":"https://github.com/getsentry/sentry-javascript/issues"},"dist":{"shasum":"868069ac1bbd129ee69cc9c60965a73d565b51e1","tarball":"http://registry-npm.ywwl.com/@sentry/node/download/@sentry/node-9.0.0-alpha.0.tgz","fileCount":548,"integrity":"sha512-yKRD7v8fL+7zUfgQ3rvIeT4BiVvHEY3AT8m7wsTneRhN2uGqlbnAeLoPazVeX2ntBxHma8gGcVK1XglNRIq4iw==","signatures":[{"sig":"MEQCIDmjlPWHvVvTiIqSSqA3Dlnp7RN1e8wlEKVVymPzmCDUAiAOE7YmoqDR0dkSw7BMU2Ai+u+yP5fw5nxntF5gwTjBBw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1739170,"size":348779,"noattachment":false,"key":"/@sentry/node/-/@sentry/node-9.0.0-alpha.0.tgz"},"main":"build/cjs/index.js","_from":"file:/tmp/craft-eaicl5/sentry-node-9.0.0-alpha.0.tgz","types":"build/types/index.d.ts","volta":{"extends":"../../package.json"},"module":"build/esm/index.js","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./build/types/index.d.ts","default":"./build/esm/index.js"},"require":{"types":"./build/types/index.d.ts","default":"./build/cjs/index.js"}},"./init":{"import":{"default":"./build/esm/init.js"},"require":{"default":"./build/cjs/init.js"}},"./import":{"import":{"default":"./build/import-hook.mjs"}},"./loader":{"import":{"default":"./build/loader-hook.mjs"}},"./preload":{"import":{"default":"./build/esm/preload.js"},"require":{"default":"./build/cjs/preload.js"}},"./package.json":"./package.json"},"scripts":{"fix":"eslint . --format stylish --fix","lint":"eslint . --format stylish","test":"yarn test:jest","build":"run-p build:transpile build:types","clean":"rimraf build coverage sentry-node-*.tgz","build:dev":"yarn build","test:jest":"jest","test:watch":"jest --watch","build:types":"run-s build:types:core build:types:downlevel","build:watch":"run-p build:transpile:watch build:types:watch","yalc:publish":"yalc publish --push --sig","build:tarball":"npm pack","build:dev:watch":"yarn build:watch","build:transpile":"rollup -c rollup.npm.config.mjs","build:types:core":"tsc -p tsconfig.types.json","circularDepCheck":"madge --circular src/index.ts","build:types:watch":"tsc -p tsconfig.types.json --watch","build:transpile:watch":"rollup -c rollup.npm.config.mjs --watch","build:types:downlevel":"yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8"},"_npmUser":{"name":"sentry-bot","email":"accounts@sentry.io"},"_resolved":"/tmp/craft-eaicl5/sentry-node-9.0.0-alpha.0.tgz","_integrity":"sha512-yKRD7v8fL+7zUfgQ3rvIeT4BiVvHEY3AT8m7wsTneRhN2uGqlbnAeLoPazVeX2ntBxHma8gGcVK1XglNRIq4iw==","repository":{"url":"git://github.com/getsentry/sentry-javascript.git","type":"git"},"_npmVersion":"10.9.2","description":"Sentry Node SDK using OpenTelemetry for performance instrumentation","directories":{},"sideEffects":false,"_nodeVersion":"22.13.0","dependencies":{"@sentry/core":"9.0.0-alpha.0","@opentelemetry/api":"^1.9.0","@opentelemetry/core":"^1.30.1","import-in-the-middle":"^1.12.0","@sentry/opentelemetry":"9.0.0-alpha.0","@prisma/instrumentation":"6.2.1","@opentelemetry/resources":"^1.30.1","@opentelemetry/sdk-trace-base":"^1.30.1","@opentelemetry/instrumentation":"^0.57.1","@opentelemetry/instrumentation-fs":"0.19.0","@opentelemetry/instrumentation-pg":"0.50.0","@opentelemetry/context-async-hooks":"^1.30.1","@opentelemetry/instrumentation-koa":"0.47.0","@opentelemetry/instrumentation-hapi":"0.45.1","@opentelemetry/instrumentation-http":"0.57.1","@opentelemetry/instrumentation-knex":"0.44.0","@opentelemetry/semantic-conventions":"^1.28.0","@opentelemetry/instrumentation-mysql":"0.45.0","@opentelemetry/instrumentation-mysql2":"0.45.0","@opentelemetry/instrumentation-undici":"0.10.0","@opentelemetry/instrumentation-amqplib":"^0.46.0","@opentelemetry/instrumentation-connect":"0.43.0","@opentelemetry/instrumentation-express":"0.47.0","@opentelemetry/instrumentation-fastify":"0.44.1","@opentelemetry/instrumentation-graphql":"0.47.0","@opentelemetry/instrumentation-ioredis":"0.47.0","@opentelemetry/instrumentation-kafkajs":"0.7.0","@opentelemetry/instrumentation-mongodb":"0.51.0","@opentelemetry/instrumentation-redis-4":"0.46.0","@opentelemetry/instrumentation-tedious":"0.18.0","@opentelemetry/instrumentation-mongoose":"0.46.0","@opentelemetry/instrumentation-dataloader":"0.16.0","@opentelemetry/instrumentation-generic-pool":"0.43.0","@opentelemetry/instrumentation-lru-memoizer":"0.44.0"},"publishConfig":{"access":"public"},"typesVersions":{"<5.0":{"build/types/index.d.ts":["build/types-ts3.8/index.d.ts"]}},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"@types/node":"^18.19.1"},"_npmOperationalInternal":{"tmp":"tmp/node_9.0.0-alpha.0_1737562094973_0.4150349200048926","host":"s3://npm-registry-packages-npm-production"},"readme":"<p align=\"center\">\n  <a href=\"https://sentry.io/?utm_source=github&utm_medium=logo\" target=\"_blank\">\n    <img src=\"https://sentry-brand.storage.googleapis.com/sentry-wordmark-dark-280x84.png\" alt=\"Sentry\" width=\"280\" height=\"84\">\n  </a>\n</p>\n\n# Official Sentry SDK for Node\n\n[![npm version](https://img.shields.io/npm/v/@sentry/node.svg)](https://www.npmjs.com/package/@sentry/node)\n[![npm dm](https://img.shields.io/npm/dm/@sentry/node.svg)](https://www.npmjs.com/package/@sentry/node)\n[![npm dt](https://img.shields.io/npm/dt/@sentry/node.svg)](https://www.npmjs.com/package/@sentry/node)\n\n## Installation\n\n```bash\nnpm install @sentry/node\n\n# Or yarn\nyarn add @sentry/node\n```\n\n## Usage\n\nSentry should be initialized as early in your app as possible. It is essential that you call `Sentry.init` before you\nrequire any other modules in your application, otherwise auto-instrumentation of these modules will **not** work.\n\nYou need to create a file named `instrument.js` that imports and initializes Sentry:\n\n```js\n// CJS Syntax\nconst Sentry = require('@sentry/node');\n// ESM Syntax\nimport * as Sentry from '@sentry/node';\n\nSentry.init({\n  dsn: '__DSN__',\n  // ...\n});\n```\n\nYou need to require or import the `instrument.js` file before importing any other modules in your application. This is\nnecessary to ensure that Sentry can automatically instrument all modules in your application:\n\n```js\n// Import this first!\nimport './instrument';\n\n// Now import other modules\nimport http from 'http';\n\n// Your application code goes here\n```\n\n### ESM Support\n\nWhen running your application in ESM mode, you should use the Node.js\n[`--import`](https://nodejs.org/api/cli.html#--importmodule) command line option to ensure that Sentry is loaded before\nthe application code is evaluated.\n\nAdjust the Node.js call for your application to use the `--import` parameter and point it at `instrument.js`, which\ncontains your `Sentry.init`() code:\n\n```bash\n# Note: This is only available for Node v18.19.0 onwards.\nnode --import ./instrument.mjs app.mjs\n```\n\nIf it is not possible for you to pass the `--import` flag to the Node.js binary, you can alternatively use the\n`NODE_OPTIONS` environment variable as follows:\n\n```bash\nNODE_OPTIONS=\"--import ./instrument.mjs\" npm run start\n```\n\n## Links\n\n- [Official SDK Docs](https://docs.sentry.io/quickstart/)\n","publish_time":1737562095309,"maintainers":[{"name":"billyvg","email":"npm@mmo.me"},{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},{"name":"haza","email":"daniel.griesser.86@gmail.com"},{"name":"jauer","email":"account@jauer.org"},{"name":"sentry-bot","email":"accounts@sentry.io"},{"name":"evanpurkhiser","email":"evanpurkhiser@gmail.com"},{"name":"lynnagara","email":"lyn.nagara@gmail.com"},{"name":"leedongwei","email":"danny@dongwei.li"},{"name":"markstory","email":"mark@mark-story.com"},{"name":"zeeg","email":"dcramer@gmail.com"}],"_cnpm_publish_time":1737562095309,"dist-tags":{"latest":"11.11.0","next":"11.0.0-rc.1","v10":"10.78.0","v7":"7.120.4","v8":"8.55.2","v9":"9.47.2"}}