sentry · Sentry JavaScript Docs
JavaScript
A guide for installing and initializing the Sentry SDK in a plain JavaScript application using package managers, loader scripts, or CDN bundles to enable error monitoring, tracing, and session replay.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
JavaScript
A guide for installing and initializing the Sentry SDK in a plain JavaScript application using package managers, loader scripts, or CDN bundles to enable error monitoring, tracing, and session replay.
When To Use
Use when you need to integrate Sentry error monitoring, performance tracing, or session replay into a vanilla JavaScript web application.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/javascript-workflow-guide.md | A guide covering prerequisites and installation methods for the Sentry JavaScript SDK using package managers. | Questions about a guide covering prerequisites and installation methods for the Sentry JavaScript SDK using package managers. |
examples/javascript-sentry-javascript-npm-install-command.bash | The bash command to install the Sentry browser SDK using npm. | Exact payloads, commands, or snippets shown in The bash command to install the Sentry browser SDK using npm. |
examples/javascript-sentry-javascript-sdk-initialization.javascript | A JavaScript code example demonstrating how to initialize the Sentry SDK with DSN, release, and PII configuration options. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to initialize the Sentry SDK with DSN, release, and PII configuration opt... |
examples/javascript-sentry-javascript-sourcemaps-wizard-setup.bash | A bash command to run the Sentry wizard for configuring sourcemaps in a JavaScript project. | Exact payloads, commands, or snippets shown in A bash command to run the Sentry wizard for configuring sourcemaps in a JavaScript project. |
examples/javascript-sentry-javascript-sdk-initialization-2.javascript | A JavaScript code snippet demonstrating how to initialize the Sentry SDK using Sentry.init with a DSN and tunnel configuration. | Exact payloads, commands, or snippets shown in A JavaScript code snippet demonstrating how to initialize the Sentry SDK using Sentry.init with a DSN and tunnel conf... |
examples/javascript-sentry-javascript-html-error-trigger.html | An HTML code example demonstrating how to trigger a manual error in a JavaScript environment to test Sentry integration. | Exact payloads, commands, or snippets shown in An HTML code example demonstrating how to trigger a manual error in a JavaScript environment to test Sentry integration. |
examples/javascript-sentry-javascript-frontend-error-tracing.html | An HTML example demonstrating how to initialize Sentry and trigger a manual error within a frontend script. | Exact payloads, commands, or snippets shown in An HTML example demonstrating how to initialize Sentry and trigger a manual error within a frontend script. |
examples/javascript-sentry-javascript-logger-usage-examples.javascript | JavaScript code demonstrating how to use Sentry.logger to record info, warn, and error level messages with additional context. | Exact payloads, commands, or snippets shown in JavaScript code demonstrating how to use Sentry.logger to record info, warn, and error level messages with additional... |
What This Skill Covers
- Browser JavaScript | Sentry for JavaScript
- Main sections:
Using a framework?,Prerequisites,Install,Option 1: Package Manager (Recommended),Option 2: Loader Script.
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
