Skip to content

Commit 6e1b2b0

Browse files
Add stub for using onDiscard to the changelog
1 parent 88fbca6 commit 6e1b2b0

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@
2626
### Features
2727

2828
- Add onDiscard to enable users to track the type and amount of data discarded before reaching Sentry ([#4612](https://github.com/getsentry/sentry-java/pull/4612))
29+
- Stub for setting the callback on `Sentry.init`:
30+
```java
31+
Sentry.init(options -> {
32+
...
33+
options.setOnDiscard(
34+
(reason, category, number) -> {
35+
// Your logic to process discarded data
36+
});
37+
});
38+
```
2939

3040
## 8.18.0
3141

0 commit comments

Comments
 (0)