File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ## [ Unreleased]
2+
3+ ### Updated sentry integration
4+
5+ Sentry updated from 1.7.29 to 4.0.0-beta.1. It is impossible to do this upgrade without breaking changes, so way to set
6+ up sentry reporter slightly changed.
7+
8+ ``` diff
9+ public Reporter createReporter() {
10+ String dsn = "[YOUR_DSN_HERE]";
11+
12+ return new SentryReporter.Builder()
13+ - .setDataSourceName(dsn)
14+ + .setDsn(dsn)
15+ - .setClientFactory(new BukkitPluginSentryClientFactory(this))
16+ + .addIntegration(new SentryBukkitIntegration(this))
17+ .focusOn(this) // Reporter will be focused on this plugin
18+ .build();
19+ }
20+ ```
21+
22+ ### Fixed
23+
24+ - Debug logging of all exceptions to log file
25+
26+ ### Housekeeping
27+
28+ - Updated Kotlin to 1.4.21
29+ - Updated Coroutines and Fuel
30+ - Build infrastructure updated
31+
32+ [ unreleased ] : https://github.com/EndlessCodeGroup/Inspector/compare/v0.9...develop
Original file line number Diff line number Diff line change @@ -145,15 +145,14 @@ public class MyTrackedPlugin extends TrackedPlugin {
145145
146146 @Override
147147 public Reporter createReporter() {
148- String publicKey = "[YOUR_PUBLIC_KEY_HERE]";
149- String projectId = "[YOUR_PROJECT_ID_HERE]";
148+ String dsn = "[YOUR_DSN_HERE]";
150149
151150 // Note that you should add needed reporter as dependency first.
152151 return new SentryReporter.Builder()
153- .setDataSourceName(publicKey, projectId )
152+ .setDsn(dsn )
154153 // If you want more detailed reports, add this, but you also should
155154 // add ` sentry-bukkit` dependency before
156- .setClientFactory (new BukkitPluginSentryClientFactory (this))
155+ .addIntegration (new SentryBukkitIntegration (this))
157156 .focusOn(this) // Reporter will be focused on this plugin
158157 .build();
159158 }
You can’t perform that action at this time.
0 commit comments