sentry-svelte-sdk

Configure Sentry SDK for Svelte and SvelteKit applications.

Updated Mar 5, 2026
One-click install
npx skills add https://github.com/Himanshu040604/codex-skills-setup --skill sentry-svelte-sdk-himanshu040604
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sentry-svelte-sdk
Source: https://github.com/Himanshu040604/codex-skills-setup/tree/main/assets/codex/skills/claude-import/skills/plugins/sentry%40claude-plugins-official/skills/sentry-svelte-sdk
Command: npx skills add https://github.com/Himanshu040604/codex-skills-setup --skill sentry-svelte-sdk-himanshu040604

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the complex process of setting up Sentry for error monitoring, tracing, session replay, and logging within Svelte and SvelteKit applications, ensuring your frontend is robust and observable.

Core Features & Use Cases

  • Automated Error Monitoring: Captures unhandled exceptions and errors on both client and server.
  • Distributed Tracing: Tracks requests and navigations across your application for performance insights.
  • Session Replay: Records user sessions to help debug issues visually.
  • Structured Logging: Integrates Sentry's logging capabilities for detailed event tracking.
  • Use Case: When a user reports a bug in your SvelteKit app, this Skill helps you quickly set up Sentry to capture the exact error, trace the user's actions leading up to it, and even replay the session to understand the context.

Quick Start

Use the sentry-svelte-sdk skill to add Sentry error monitoring to your SvelteKit application.

Frequently Asked Questions about sentry-svelte-sdk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Sentry error monitoring in a SvelteKit application?

Setting up Sentry error monitoring in SvelteKit involves configuring the Sentry SDK to automatically capture unhandled exceptions on both client and server, while also enabling distributed tracing to track requests and navigations.

What is distributed tracing and session replay in Svelte error tracking?

Distributed tracing in Svelte error tracking monitors request flows across your application, while session replay records user sessions visually to help you debug issues and understand the exact context leading to an error.

Can I use Sentry SDK with plain Svelte projects or legacy SvelteKit setups?

Yes, Sentry SDK supports plain Svelte projects alongside both modern and legacy SvelteKit setups, allowing you to implement error monitoring, structured logging, and session replay regardless of your specific project architecture.

How do I upload source maps to Sentry for a Vite and SvelteKit project?

You can upload source maps for a Vite and SvelteKit project by integrating Sentry with Vite, which ensures your captured errors and performance traces point accurately to your original source code for effective debugging.

Does Sentry SDK support structured logging for Svelte applications?

Yes, Sentry SDK supports structured logging for Svelte applications by integrating Sentry's logging capabilities, enabling detailed event tracking and context collection alongside automatic error capture and request tracing.