Java and Spring Boot error tracking your coding agent can read

Updated 2026-11-13

Runheed accepts events from Sentry SDKs, so a Java or Kotlin app reports through sentry-java: point its DSN at your Runheed project and your coding agent reads each exception over MCP from Claude Code, Cursor or any MCP client. Tested with sentry-java 8.16 on Java 24. Spring Boot apps add sentry-spring-boot-starter-jakarta, which uses it underneath and reads sentry.dsn from application.properties.

Set it up

  1. 1.Add the dependency (the Spring Boot starter for a Spring app).

    pom.xmlxml
    <dependency>
      <groupId>io.sentry</groupId>
      <artifactId>sentry</artifactId>
      <version>8.16.0</version>
    </dependency>
    <!-- Spring Boot 3: io.sentry:sentry-spring-boot-starter-jakarta -->
  2. 2.Initialize it with the project's Sentry SDK DSN (Projects page, or ask your agent: runheed_list_projects). With Spring Boot, set sentry.dsn in application.properties instead.

    Main.javajava
    // RUNHEED_SENTRY_DSN=https://<key>@runheed.com/<number>
    import io.sentry.Sentry;
    
    Sentry.init(options -> {
      options.setDsn(System.getenv("RUNHEED_SENTRY_DSN"));
      options.setEnvironment(System.getenv().getOrDefault("ENVIRONMENT", "production"));
      options.setRelease(System.getenv("GIT_SHA"));
    });
    
    try {
      reserveSeats(request);
    } catch (Exception e) {
      Sentry.captureException(e);
    }
  3. 3.Connect your agent, then sign in when it asks (other clients: /connect).

    terminalbash
    claude mcp add --transport http runheed https://runheed.com/api/mcp

The npm and PyPI releases are not out yet, so these commands install the same package files straight from runheed.com. Nothing else changes when the registry versions ship.

What it catches

  • Exceptions you report with Sentry.captureException(e)
  • Uncaught exceptions (the SDK installs an uncaught exception handler)
  • Unhandled exceptions in Spring MVC requests, through the Spring Boot starter

What it does not do

  • Tracing and profiling are accepted and dropped: Runheed tracks errors only

Then ask your agent

> what broke in production since the last deploy? fix the top one and resolve it with the commit hash

Connect Runheed first: Claude Code, Cursor or another client. Then see how the agent fixes and resolves an error.

Common Java and Spring Boot errors

7-day trial, then $29/moOther agents and editorsCancel any time from the billing portal