@@ -3,27 +3,26 @@ Reporter that sends reports to [Sentry](https://sentry.io/).
33
44### Gradle
55``` groovy
6- ext.inspectorVersion = "0.9 "
6+ ext.inspectorVersion = "0.10.0 "
77dependencies {
88 implementation "ru.endlesscode.inspector:inspector-sentry-reporter:$inspectorVersion"
9- implementation "ru.endlesscode.inspector:sentry-bukkit:$inspectorVersion" // If you want BukkitPluginSentryClientFactory
9+ implementation "ru.endlesscode.inspector:sentry-bukkit:$inspectorVersion" // If you want SentryBukkitIntegration
1010}
1111```
1212
1313## Usage
1414You should return ` SentryReporter ` in ` createReporter ` method:
1515``` java
1616@Override
17- protected Reporter createReporter() {
18- String publicKey = " [YOUR_PUBLIC_KEY_HERE]" ;
19- String projectId = " [YOUR_PROJECT_ID_HERE]" ;
17+ protected Reporter createReporter(){
18+ String dsn= " [YOUR_DSN_HERE]" ;
2019
21- return new SentryReporter .Builder ()
22- .setDataSourceName(publicKey, projectId )
23- // If you want more detailed reports, add this, but you also should
24- // add `sentry-bukkit` dependency before
25- .setClientFactory (new BukkitPluginSentryClientFactory (this ))
26- .focusOn(this ) // this - instance of TrackedPlugin
20+ return new SentryReporter .Builder ()
21+ .setDsn(dsn )
22+ // If you want more detailed reports, add this, but you also should
23+ // add `sentry-bukkit` dependency before
24+ .addIntegration (new SentryBukkitIntegration (this ))
25+ .focusOn(this ) // this - instance of TrackedPlugin
2726 .build();
2827}
2928```
0 commit comments