{"name":"@sentry/node","version":"8.41.0","author":{"name":"Sentry"},"license":"MIT","_id":"@sentry/node@8.41.0","homepage":"https://github.com/getsentry/sentry-javascript/tree/master/packages/node","bugs":{"url":"https://github.com/getsentry/sentry-javascript/issues"},"dist":{"shasum":"52f970648d961f6e82a1b23a88c0000aa72ba21a","tarball":"http://registry-npm.ywwl.com/@sentry/node/download/@sentry/node-8.41.0.tgz","fileCount":538,"integrity":"sha512-eYD5S8Lti9efBHFSIhZ/0C5uI1DQtGqjuNWQ62CKC47G2qgJddBtb2HgqRFAnMajYL9FXEtiDT6uqQhKQnmLcQ==","signatures":[{"sig":"MEYCIQCvK/fpsYsRdz8NnYD4Gj8YMEjHPy3zbKXrYQxiYTeO+AIhAIYcPIG0fWPVLzHy5y+xJM5mSzDWGoI1pqG6af3pDmak","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2991301,"size":395637,"noattachment":false,"key":"/@sentry/node/-/@sentry/node-8.41.0.tgz"},"main":"build/cjs/index.js","_from":"file:/tmp/craft-ZwbTSB/sentry-node-8.41.0.tgz","types":"build/types/index.d.ts","volta":{"extends":"../../package.json"},"module":"build/esm/index.js","engines":{"node":">=14.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-ZwbTSB/sentry-node-8.41.0.tgz","_integrity":"sha512-eYD5S8Lti9efBHFSIhZ/0C5uI1DQtGqjuNWQ62CKC47G2qgJddBtb2HgqRFAnMajYL9FXEtiDT6uqQhKQnmLcQ==","repository":{"url":"git://github.com/getsentry/sentry-javascript.git","type":"git"},"_npmVersion":"10.8.2","description":"Sentry Node SDK using OpenTelemetry for performance instrumentation","directories":{},"sideEffects":false,"_nodeVersion":"20.18.1","dependencies":{"@sentry/core":"8.41.0","@sentry/types":"8.41.0","@opentelemetry/api":"^1.9.0","@opentelemetry/core":"^1.25.1","import-in-the-middle":"^1.11.2","@sentry/opentelemetry":"8.41.0","@prisma/instrumentation":"5.19.1","@opentelemetry/resources":"^1.26.0","@opentelemetry/sdk-trace-base":"^1.26.0","@opentelemetry/instrumentation":"^0.54.0","@opentelemetry/instrumentation-fs":"0.16.0","@opentelemetry/instrumentation-pg":"0.44.0","@opentelemetry/context-async-hooks":"^1.25.1","@opentelemetry/instrumentation-koa":"0.43.0","@opentelemetry/instrumentation-hapi":"0.41.0","@opentelemetry/instrumentation-http":"0.53.0","@opentelemetry/instrumentation-knex":"0.41.0","@opentelemetry/semantic-conventions":"^1.27.0","@opentelemetry/instrumentation-mysql":"0.41.0","@opentelemetry/instrumentation-mysql2":"0.41.0","@opentelemetry/instrumentation-undici":"0.6.0","@opentelemetry/instrumentation-amqplib":"^0.43.0","@opentelemetry/instrumentation-connect":"0.40.0","@opentelemetry/instrumentation-express":"0.44.0","@opentelemetry/instrumentation-fastify":"0.41.0","@opentelemetry/instrumentation-graphql":"0.44.0","@opentelemetry/instrumentation-ioredis":"0.43.0","@opentelemetry/instrumentation-kafkajs":"0.4.0","@opentelemetry/instrumentation-mongodb":"0.48.0","@opentelemetry/instrumentation-redis-4":"0.42.0","@opentelemetry/instrumentation-tedious":"0.15.0","@opentelemetry/instrumentation-mongoose":"0.42.0","@opentelemetry/instrumentation-dataloader":"0.12.0","@opentelemetry/instrumentation-nestjs-core":"0.40.0","@opentelemetry/instrumentation-generic-pool":"0.39.0","@opentelemetry/instrumentation-lru-memoizer":"0.40.0"},"publishConfig":{"access":"public"},"typesVersions":{"<4.9":{"build/types/index.d.ts":["build/types-ts3.8/index.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^14.18.0"},"_npmOperationalInternal":{"tmp":"tmp/node_8.41.0_1732711975239_0.883744796269827","host":"s3://npm-registry-packages"},"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":1732711975476,"maintainers":[{"name":"benvinegar","email":"ben@benv.ca"},{"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":1732711975476,"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"}}