# Svelte Error and Performance Monitoring

> Get actionable insights into your workflow with Svelte performance monitoring. Learn how you can get started for free with Sentry here.

**URL:** https://sentry.io/for/svelte/

---

Actionable insights to resolve Svelte performance bottlenecks and errors. Improve your monitoring workflow with a full view of releases so you can mark Svelte errors as resolved and prioritize live issues.

**Documentation:** [https://docs.sentry.io/platforms/javascript/guides/svelte/](https://docs.sentry.io/platforms/javascript/guides/svelte/)

## Install

To use the SDK, initialize Sentry in your Svelte entry point main.js before you bootstrap your Svelte app:

```javascript
// main.js / main.ts

import App from "./App.svelte";

import * as Sentry from "@sentry/svelte";

// Initialize the Sentry SDK here
Sentry.init({
  dsn: "__DSN__",
  release: "my-project-name@2.3.12",

  integrations: [Sentry.browserTracingIntegration()],

  // We recommend adjusting this value in production
  tracesSampleRate: 1.0,

  // Set tracePropagationTargets to control for which URLs distributed tracing should be enabled
  tracePropagationTargets: ['localhost', /^https:\/\/yourserver\.io\/api/],
});

// Then bootstrap your Svelte app
const app = new App({
  target: document.getElementById("app"),
});

export default app;
```

See the [Svelte docs](https://docs.sentry.io/platforms/javascript/guides/svelte/) for full setup options.

## Features

### Svelte Performance Monitoring

Quickly identify [performance](/for/performance/) issues and view full end-to-end distributed trace to see the exact poor-performing API call and surface any related Svelte errors. Improve Svelte performance with max efficiency, not max effort.

### Issues, replayed

Get to the root cause of an error or latency issue faster with context like DOM events, console logs, and network calls within one visual replay on your web application.

### Svelte Error Monitoring With Complete Stack Traces

See the error and Svelte stack trace previously only visible in your user's debug console. Apply source maps automatically to convert minified, compiled, or transpiled code back to its original form. Keep your Svelte source maps private by uploading them directly to Sentry.

### Fill In The Blanks About Svelte Errors

See what the app was doing when the Svelte error occurred: user interactions, AJAX requests, console log messages, and more. Learn in which version a bug first appeared, merge duplicates, and know if things regress in a future release

---

*Source: [sentry.io/for/svelte/](https://sentry.io/for/svelte/)*
