# 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

Grab the [Sentry Svelte SDK](https://github.com/getsentry/sentry-javascript/):

```bash
npm install @sentry/svelte
```

Initialize Sentry in your Svelte entry point (`main.js` or `main.ts`) before you mount your app:

```javascript
import { mount } from "svelte";
import App from "./App.svelte";
import * as Sentry from "@sentry/svelte";

Sentry.init({
  dsn: "https://<key>@sentry.io/<project>",
  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/],
});

const app = mount(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 issues with [Tracing](/product/tracing/) and view the 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/)*
