Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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!