# Spring Error Monitoring

> Debug Spring apps and prevent crashes across your entire stack with Sentry. Improve your Spring monitoring workflow with a full view of releases so you can triage errors and prioritize live issues.

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

---

Debug Spring apps and prevent crashes across your entire stack with Sentry. Improve your Spring monitoring workflow with a full view of releases so you can triage errors and prioritize live issues.

**Documentation:** [https://docs.sentry.io/platforms/java/guides/spring/](https://docs.sentry.io/platforms/java/guides/spring/)

## Install

Grab the [Sentry Java SDK](https://github.com/getsentry/sentry-java/) for Spring 6 (use `sentry-spring` for Spring 5 or `sentry-spring-7` for Spring 7):

```xml
<dependency>
  <groupId>io.sentry</groupId>
  <artifactId>sentry-spring-jakarta</artifactId>
  <version>8.63.0</version>
</dependency>
```

Configure your DSN:

```java
import io.sentry.spring.jakarta.EnableSentry;
// NOTE: Replace the example DSN below with YOUR OWN DSN to see the events from this app in your Sentry
// project/dashboard
@EnableSentry(dsn = "https://<key>@sentry.io/<project>")
@Configuration
class SentryConfiguration {
}
```

See the [Spring docs](https://docs.sentry.io/platforms/java/guides/spring/) for full setup options.

## Features

### Spring Error Monitoring with Complete Stack Traces

See details like filename and line number so you never have to guess. Filter and group Spring exceptions intuitively to eliminate noise. Monitor errors at scale without impacting throughput in production.

### Fill In the Blanks About Spring Errors

Expose the important events that led to each Java exception: debug logs, network requests, database queries, past errors.

### Resolve Spring Errors With Max Efficiency, Not Max Effort

Learn in which version a bug first appeared, merge duplicates, and know if things regress in a future release. Add commit data to automatically suggest an owner of each Spring error and instantly send deploy emails.

---

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