← All platforms

Spring error tracking

When a Spring request breaks, keep the exception and its backtrace on your server. The Sentry integration connects it to Telebugs.

~/hoofnotes  nvim build.gradle src/main/java/com/hoofnotes/SentryConfiguration.java
// Spring 6 MVC: add this to your existing Gradle build.
dependencies {
implementation 'io.sentry:sentry-spring-jakarta:8.55.0'
}
package com.hoofnotes;
import io.sentry.spring.jakarta.EnableSentry;
import org.springframework.context.annotation.Configuration;
@Configuration
@EnableSentry(
// Copy the complete DSN, key and path included.
dsn = "YOUR_TELEBUGS_DSN"
)
public class SentryConfiguration {}
~/hoofnotes  ./gradlew war

Space pauses or resumes. R replays. Escape shows the complete setup.

Hang on, I already use Sentry

Keep sentry-spring-jakarta. Point it at your Telebugs DSN and keep reporting errors as before. The reports go to your server; you don’t need a Sentry account.

What happens when a controller throws?

The Spring MVC integration can report unhandled request exceptions with their backtraces. If your own exception handler consumes the error, you can still report it explicitly.

Is Spring Boot supported too?

Yes. Spring Boot has its own Sentry starter. Same Telebugs server, less configuration by hand.