Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/javascript-workflow-guide.mdA 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.bashThe 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.javascriptA 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.bashA 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.javascriptA 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.htmlAn 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.htmlAn 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.javascriptJavaScript 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

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://docs.sentry.io/platforms/javascript