كل حِزم SDK
java.util.logging
vio.sentry:sentry-jul
استخدم حِزمة Sentry الرسمية مع DSN الظاهر في إعداد مشروع AllStak. لا تحتاج إلى حِزمة SDK خاصة بـ AllStak.
التثبيت
تأتي أوامر Sentry الرسمية هذه من سجل حِزم SDK المُدار في AllStak.
maven
<dependency>
<groupId>io.sentry</groupId>
<artifactId>sentry-jul</artifactId>
</dependency>gradle
implementation("io.sentry:sentry-jul")البدء السريع
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"));