All SDKs

java.util.logging

v

io.sentry:sentry-jul

Use the official Sentry SDK with the DSN shown in your AllStak project setup. No AllStak-specific SDK is required.

Install

These official Sentry commands come from the AllStak-managed SDK catalog.

maven
<dependency>
  <groupId>io.sentry</groupId>
  <artifactId>sentry-jul</artifactId>
</dependency>
gradle
implementation("io.sentry:sentry-jul")

Quick start

import io.sentry.Sentry;

Sentry.init(options -> {
  options.setDsn("{{DSN}}");
  options.setEnvironment("production");
  options.setRelease("[email protected]");
  options.setTracesSampleRate(1.0);
  // Off by default. Enable only if you accept sending usernames,
  // emails and IP addresses to your telemetry backend.
  options.setSendDefaultPii(false);
});

Sentry.captureException(new RuntimeException("hello from sentry-java"));