Skip to content

Latest commit

 

History

History
executable file
·
34 lines (26 loc) · 889 Bytes

File metadata and controls

executable file
·
34 lines (26 loc) · 889 Bytes

Sentry Reporter

Reporter that sends reports to Sentry.

Gradle

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
}

Usage

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();
}

setDsn call is required!