PlatformsJava

Java

Capture exceptions from Spring Boot and JVM services with sentry-java pointed at Epure.

Use official sentry-java (fixture captured at 7.8.0, artifact io.sentry:sentry). Point the DSN at your Epure host. No Epure Maven coordinate.

Use this guide when the process is a JVM service: Spring Boot, Quarkus, Micronaut, servlets, workers. Do not use this for Android (out of scope). JS/TS → Next.js. Full map: Pick your SDK.

Capture exceptions on the JVM

Add io.sentry:sentry, call Sentry.init once at startup, then throw or captureException. Envelope ingest. Grouping uses raw frames. No ProGuard / NDK symbol server.

How do I install sentry-java?

<dependency>
  <groupId>io.sentry</groupId>
  <artifactId>sentry</artifactId>
  <version>7.8.0</version>
</dependency>

Keep sentry-spring-boot (or the servlet integration you already use). Only the DSN host changes.

Init the Java SDK

Sentry.init(options -> {
    options.setDsn(System.getenv("SENTRY_DSN"));
    options.setEnvironment("local");
    options.setRelease("my-api@0.0.0");
    options.setTracesSampleRate(0.0);
    options.setProfilesSampleRate(0.0);
});

Local compose DSN shape:

http://YOUR_PUBLIC_KEY@localhost:8080/YOUR_PROJECT_ID
OptionValue
DSNRequired: public key + Epure host + project UUID
environmentTag for the dashboard filter strip
releaseVersion string on the issue
traces sample rate0; transactions discarded
profiles sample rate0; profiles discarded

Android is out of scope

No Cocoa/Android fixtures, no dSYM/ProGuard/NDK. JVM HTTP services and workers only.

How do I capture handled errors?

try {
    risky();
} catch (Exception e) {
    Sentry.captureException(e);
    throw e;
}

What should I see after ingest?

202, then an issue whose title matches the exception type and message, with a stack as sentry-java sent it.

Why does Java never send?

What you seeWhat to do
401 / 403Recopy the DSN from Settings → SDK connection
202, empty IssuesMatch the environment chip to setEnvironment
Worker throws missingInit Sentry in the worker JVM, not only the HTTP process

Next

Does Epure support ProGuard or Android?

No. There is no ProGuard, dSYM, or NDK symbolication. JVM services group on frames as sentry-java sends them. Native mobile is out of scope.

Are traces stored?

No. Set traces and profiles sample rates to 0. Those item types are discarded on ingest. Exception events plus breadcrumbs stay.