Reporter that sends reports to Sentry.
ext.inspectorVersion = "0.12.1"
dependencies {
implementation "ru.endlesscode.inspector:inspector-sentry-reporter:$inspectorVersion"
implementation "ru.endlesscode.inspector:sentry-bukkit:$inspectorVersion" // If you want SentryBukkitIntegration
}You should return SentryReporter in createReporter method:
@Override
protected Reporter createReporter() {
String dsn="[YOUR_DSN_HERE]";
return new SentryReporter.Builder()
.setDsn(dsn)
// If you want more detailed reports, add this, but you also should
// add `sentry-bukkit` dependency before
.addIntegration(new SentryBukkitIntegration(this))
.focusOn(this) // this - instance of TrackedPlugin
.build();
}
setDsncall is required!