sentry · Sentry JavaScript Docs
Javascript Node.js
A guide for manually setting up the Sentry SDK in a Node.js application, including installation, initialization via an instrument file, and applying instrumentation for error monitoring, tracing, profiling, and logs.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Javascript Node.js
A guide for manually setting up the Sentry SDK in a Node.js application, including installation, initialization via an instrument file, and applying instrumentation for error monitoring, tracing, profiling, and logs.
When To Use
Use when you need to integrate Sentry error monitoring, tracing, or profiling into a Node.js application using CommonJS or ESM module systems.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/javascript-node-js-workflow-guide.md | A guide covering prerequisites, installation, and configuration of the Sentry SDK for Node.js applications. | Questions about a guide covering prerequisites, installation, and configuration of the Sentry SDK for Node.js applications. |
examples/javascript-node-js-sentry-javascript-node-npm-install-command.bash | The bash command to install the Sentry Node.js SDK using npm. | Exact payloads, commands, or snippets shown in The bash command to install the Sentry Node.js SDK using npm. |
examples/javascript-node-js-sentry-javascript-node-npm-install-command-2.bash | The bash command to install the Sentry Node.js SDK and profiling package via npm. | Exact payloads, commands, or snippets shown in The bash command to install the Sentry Node.js SDK and profiling package via npm. |
examples/javascript-node-js-sentry-javascript-nodejs-init-profiling.javascript | A JavaScript code example demonstrating how to initialize the Sentry SDK with Node.js profiling integration. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to initialize the Sentry SDK with Node.js profiling integration. |
examples/javascript-node-js-sentry-javascript-nodejs-instrumentation.javascript | A JavaScript code example demonstrating how to initialize Sentry instrumentation in a Node.js application using a required local module. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to initialize Sentry instrumentation in a Node.js application using a req... |
examples/javascript-node-js-sentry-javascript-node-instrumentation-import-command.bash | A bash command demonstrating how to use the node --import flag to load the Sentry instrumentation module for Node.js v18.19.0 and above. | Exact payloads, commands, or snippets shown in A bash command demonstrating how to use the node --import flag to load the Sentry instrumentation module for Node.js... |
examples/javascript-node-js-sentry-javascript-node-sourcemaps-wizard-command.bash | A bash command to run the Sentry wizard for uploading sourcemaps in a Node.js environment. | Exact payloads, commands, or snippets shown in A bash command to run the Sentry wizard for uploading sourcemaps in a Node.js environment. |
examples/javascript-node-js-sentry-javascript-nodejs-exception-capture.javascript | A JavaScript code example demonstrating how to capture exceptions using Sentry in a Node.js environment within a setTimeout callback. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to capture exceptions using Sentry in a Node.js environment within a setT... |
examples/javascript-node-js-sentry-javascript-nodejs-start-span.javascript | A JavaScript code example demonstrating how to use Sentry.startSpan to wrap an asynchronous operation and capture exceptions in a Node.js environment. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use Sentry.startSpan to wrap an asynchronous operation and capture exc... |
examples/javascript-node-js-sentry-javascript-nodejs-logger-usage.javascript | A javascript code example demonstrating how to use Sentry.logger to record info, warn, and error messages in a Node.js environment. | Exact payloads, commands, or snippets shown in A javascript code example demonstrating how to use Sentry.logger to record info, warn, and error messages in a Node.j... |
What This Skill Covers
- A Sentry account and project Your application up and running Node version 18.0.0 or above (= 19.9.0 or 18.19.0 recommended)
- Main sections:
Prerequisites,Install,Install the Sentry SDK,Configure,Initialize the Sentry SDK.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://docs.sentry.io/platforms/javascript/guides/node
