Skip to content

Commit 6f5c2dc

Browse files
committed
docs: Add CHANGELOG
1 parent c83c7e6 commit 6f5c2dc

2 files changed

Lines changed: 35 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)