Skip to content

Commit 1e51db6

Browse files
adinauerimatwawanalobsterkatiemarandanetovaind
authored
Update docs to use Hint object (#5062)
* Update docs to use Hint object * Revert migration guide changes * Change import for Hint * Document how to manipulate attachments via hints (#5070) * Document how to manipulate attachments via hints * Apply suggestions from code review Co-authored-by: Isabel <[email protected]> * Update src/includes/enriching-events/add-attachment/java.mdx Co-authored-by: Isabel <[email protected]> * Apply suggestions from code review Co-authored-by: Isabel <[email protected]> * ref(frontend): Bump JS SDK to 7.0 beta 2 (#5064) * bump to 7.0 beta 2 * update yarn.lock * Fix manifest code snippet tag (#5069) * fix: typos in Unity troubleshooting (#5060) * Typo fix (#5059) * fix references to source maps and time range change example (#5051) * Fix typo in query builder docs (#5072) * updated banner (#5067) * docs(js): Add sourcemaps explain to source maps troubleshooting guide (#5076) * feat(discover): extend list of stacking functions (#5074) - This list is a bit outdated, and there are many more functions that discover supports. Updating this to include all of them, but longterm probably worth revisiting this section of docs - This is so the API docs can link here * chore: bump Sentry SDK to 7.0.0-rc.0 (#5077) * chore(billing): GA on-demand budget for all performance plans (#5075) * fix(alerts): Remove duplicate alert rules section (#5080) * feat(visibility): Add a note about apdex score (#5081) - This is cause I've heard folks confused whether a higher apdex score is better or not, and personally forget sometimes. * feat(unity): Added Screenshot to Verify (#5031) * added sample screenshot * Update src/includes/getting-started-verify/unity.mdx Co-authored-by: Isabel <[email protected]> * jpg -> png Co-authored-by: Bruno Garcia <[email protected]> Co-authored-by: Isabel <[email protected]> * Add instructions to tree shake tracing code in JS SDK (#5086) * Add docs for new attachments API (#5073) Co-authored-by: Isabel <[email protected]> * Add React Router v6 instrumentation docs. (#5037) Co-authored-by: Isabel <[email protected]> * Remove `ignoreSentryErrors` section in JS docs (#5036) * Update ExtraErrorData depth description (#5021) JavaScript SDK: Updates `ExtraErrorData` `depth` option description to not mention a workaround for the global `normalizeDepth` option. * feat(angular): Update Angular docs for v7 release (#4963) This PR updates our Angular SDK docs for the v7 release. It adds information about compatibility of our SDK with different Angular versions and updates information on `TraceDirective` compatibility. * Adjust JS CDN bundle page to reflect ES5/ES6 naming changes (#4962) Co-authored-by: Isabel <[email protected]> * ref(js): change migration guide URLs from v7 branch to master (#5087) This small PR changes the URLs of two links to the JS SDK migration guide which previously linked to the 7.x branch version of the migration guide. It now links to master since we merged the 7.x branch * Adust docs for dealing with baggage headers (CORS and meta tags) (#5061) Adjust the JS SDK Performance Monitoring -> "Connect Services" page by adding information about the newly introduced baggage header and its propagation. It adds instructions on setting up CORS rules to accept the new header as well as how to add the baggage information to meta tags for server-originating traces. * Add tree shaking guide for default integrations (#4996) Co-authored-by: Isabel <[email protected]> * Replace deprecated severity enums with string literals (#4940) Co-authored-by: Lukas Stracke <[email protected]> * getsentry/relay@8fcff0b * Adust docs after renaming `UserAgent` integration to `HttpContext` (#4997) This PR adjusts docs after renaming the UserAgent integration in the Sentry JS SDK to HttpContext * Add Prisma ORM Integration Docs. (#4961) Co-authored-by: Isabel <[email protected]> * chore: bump Sentry SDK to 7.0.0 (#5088) * ref(native): capture-error using high-level API. (#5085) * feat(widget-builder): Add GA documentation - (#5065) * Add SampleRate code sample for go (#5090) * fix(android): Typo for UI transactions (#5096) * ref(js): Add note about old name of HttpContext integration (#5099) Adds a note to the HttpContext integration of the JS SDK explaining that it was called UserAgent before v7. This ensures that pre-v7 users can find correct information about their default integrations. * ref(js): Add baggage intormation to automatic instrumentation page (#5095) Add instructions on how to deal with the new baggage header in CORS settings. The baggage header was introduced in v7 of the JS SDK. * feat(apple): User interaction instrumentation (#5098) Add docs similar to user interaction instrumentation on Android. As the implementations don't match exactly we can't create reusable docs. Co-authored-by: Isabel <[email protected]> Co-authored-by: Roman Zavarnitsyn <[email protected]> * dotnet performance clarify GetSpan (#5078) Co-authored-by: Isabel <[email protected]> Co-authored-by: Matt Johnson-Pint <[email protected]> Co-authored-by: Bruno Garcia <[email protected]> * chore(unity): Fixed typo (#5050) Co-authored-by: Bruno Garcia <[email protected]> * docs: add explanation regarding appcenter token (#5063) * ref(integration-platform): Add URI formatting guidelines to docs (#5103) This PR adds a blurb explaining the URI formatting guidelines for the schema they provide when specifying UI Components. Each instance of a URI attribute links back to these guidelines. * improve enable suspect commits content (#5094) * restructured page * restructured page * restructured enable suspect commits page * fixes to improve flow * fixing typo and clarifying language * wording fixes * feat(alerts): Restore duplciate alert rule docs (#5111) * feat(integrations): Direct users to the reference implementation (#5053) * getsentry/relay@acb94fa * ref(android): Simplify UI transaction code sample (#5097) Reduce the complexity of the code sample for manually adding spans to user interaction transacrtions. Co-authored-by: Roman Zavarnitsyn <[email protected]> * feat(unity): Added additional platforms to native support (#5109) * improved native support docs * Update src/includes/getting-started-primer/unity.mdx Co-authored-by: Isabel <[email protected]> * Update src/platforms/unity/native-support/index.mdx Co-authored-by: Isabel <[email protected]> * Update src/platforms/unity/native-support/index.mdx Co-authored-by: Isabel <[email protected]> * Update src/platforms/unity/native-support/index.mdx Co-authored-by: Isabel <[email protected]> * Update src/platforms/unity/native-support/index.mdx Co-authored-by: Isabel <[email protected]> * Update src/platforms/unity/native-support/index.mdx Co-authored-by: Isabel <[email protected]> Co-authored-by: Isabel <[email protected]> * feat(apple): Add UI instrumentation to wizard (#5100) * Refactor Ionic/Capacitor/Cordova Wizards (#5093) Co-authored-by: Isabel <[email protected]> * fix(quotas): Clarify filters application scope (#5102) Inbound data filters are applied to all events, including transactions. See [envelope filtering](https://github.com/getsentry/relay/blob/7c6b308bbf04e63e8e0b456489da1ddc320e2e6a/relay-server/src/actors/envelopes.rs#L1603) and the [should_filter check](https://github.com/getsentry/relay/blob/7c6b308bbf04e63e8e0b456489da1ddc320e2e6a/relay-filter/src/lib.rs#L38-L60) in relay. * feat(api): Update the bump script since CI doesn't run it (#5115) - this is so the script can be run on MacOS where the date function is slightly different * chore(api): bump api sha with events doc (#5116) Bump the SENTRY_API_SCHEMA_SHA with latest changes * Add metric alert slack example with new chart (#5113) Co-authored-by: Isabel <[email protected]> * Change migration guide for hints (#5068) * Add discontinuation of AngularJS 1.x (#5123) * feat(docs): Document flutter autoInitializeNativeSdk (#5029) * chore(unity): Updated troubleshooting for 2022 (#5122) * ref(native): Clarify before_send with Crashpad (#5092) Co-authored-by: Isabel <[email protected]> * getsentry/relay@d8f887a * docs(dashboards): Releases in Dashboards (#5083) Documentation for the Releases widget in Dashboard * fix transaction quota management content (#5114) * added inbound filters to transaction quota mgmt, removed beforeSend, and fixed inbound filter reference on quotas index page * fixed typo * feat(alerts): Alert wizard v3 alert config docs (#5107) * feat(alerts): Alert wizard v3 alert config docs * addressing comments updating screenshots * update screenshot * review 2 * reverting an accidental change Co-authored-by: Isabel <[email protected]> * hid banner (#5127) * feat(android): App permissions in App Context (#5038) Co-authored-by: Isabel <[email protected]> Co-authored-by: Katie Byers <[email protected]> Co-authored-by: Manoel Aranda Neto <[email protected]> Co-authored-by: Ivan Dlugos <[email protected]> Co-authored-by: Asko Kauppi <[email protected]> Co-authored-by: Aru Sahni <[email protected]> Co-authored-by: dorothymlee <[email protected]> Co-authored-by: Kamil Ogórek <[email protected]> Co-authored-by: William Mak <[email protected]> Co-authored-by: Vladan Paunovic <[email protected]> Co-authored-by: Alberto Leal <[email protected]> Co-authored-by: Taylan Gocmen <[email protected]> Co-authored-by: Stefan Jandl <[email protected]> Co-authored-by: Bruno Garcia <[email protected]> Co-authored-by: Luca Forstner <[email protected]> Co-authored-by: Tim Fish <[email protected]> Co-authored-by: Onur Temizkan <[email protected]> Co-authored-by: Lukas Stracke <[email protected]> Co-authored-by: Joris Bayer <[email protected]> Co-authored-by: Mischan Toosarani-Hausberger <[email protected]> Co-authored-by: Priscila Oliveira <[email protected]> Co-authored-by: Neel Shah <[email protected]> Co-authored-by: Philipp Hofmann <[email protected]> Co-authored-by: Roman Zavarnitsyn <[email protected]> Co-authored-by: Nicholas Meisenheimer <[email protected]> Co-authored-by: Matt Johnson-Pint <[email protected]> Co-authored-by: Stefan Jandl <[email protected]> Co-authored-by: Jérémy Barbet <[email protected]> Co-authored-by: Leander Rodrigues <[email protected]> Co-authored-by: LucasZF <[email protected]> Co-authored-by: Iker Barriocanal <[email protected]> Co-authored-by: Scott Cooper <[email protected]> Co-authored-by: Denis Andrašec <[email protected]> Co-authored-by: Shruthi <[email protected]>
1 parent 557c4a8 commit 1e51db6

File tree

14 files changed

+167
-34
lines changed

14 files changed

+167
-34
lines changed

src/includes/configuration/before-send-fingerprint/java.spring-boot.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
```java
22
import io.sentry.SentryEvent;
33
import io.sentry.SentryOptions;
4+
import io.sentry.Hint
45
import org.springframework.stereotype.Component;
56

67
@Component
78
public class CustomBeforeSendCallback implements SentryOptions.BeforeSendCallback {
89
@Override
9-
public SentryEvent execute(SentryEvent event, Object hint) {
10+
public SentryEvent execute(SentryEvent event, Hint hint) {
1011
if (event.getThrowable() instanceof SQLException) {
1112
event.setFingerprints(Arrays.asList("database-connection-error"));
1213
}
@@ -18,11 +19,12 @@ public class CustomBeforeSendCallback implements SentryOptions.BeforeSendCallbac
1819
```kotlin
1920
import io.sentry.SentryEvent
2021
import io.sentry.SentryOptions
22+
import io.sentry.Hint
2123
import org.springframework.stereotype.Component
2224

2325
@Component
2426
class CustomBeforeSendCallback : SentryOptions.BeforeSendCallback {
25-
override fun execute(event: SentryEvent, hint: Any?): SentryEvent? {
27+
override fun execute(event: SentryEvent, hint: Hint): SentryEvent? {
2628
if (event.throwable is SQLException) {
2729
event.fingerprints = listOf("database-connection-error")
2830
}

src/includes/configuration/before-send-fingerprint/java.spring.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
```java
22
import io.sentry.SentryEvent;
33
import io.sentry.SentryOptions;
4+
import io.sentry.Hint
45
import org.springframework.stereotype.Component;
56

67
@Component
78
public class CustomBeforeSendCallback implements SentryOptions.BeforeSendCallback {
89
@Override
9-
public SentryEvent execute(SentryEvent event, Object hint) {
10+
public SentryEvent execute(SentryEvent event, Hint hint) {
1011
if (event.getThrowable() instanceof SQLException) {
1112
event.setFingerprints(Arrays.asList("database-connection-error"));
1213
}
@@ -18,11 +19,12 @@ public class CustomBeforeSendCallback implements SentryOptions.BeforeSendCallbac
1819
```kotlin
1920
import io.sentry.SentryEvent
2021
import io.sentry.SentryOptions
22+
import io.sentry.Hint
2123
import org.springframework.stereotype.Component
2224

2325
@Component
2426
class CustomBeforeSendCallback : SentryOptions.BeforeSendCallback {
25-
override fun execute(event: SentryEvent, hint: Any?): SentryEvent? {
27+
override fun execute(event: SentryEvent, hint: Hint): SentryEvent? {
2628
if (event.throwable is SQLException) {
2729
event.fingerprints = listOf("database-connection-error")
2830
}

src/includes/configuration/before-send-hint/java.spring-boot.mdx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
A `BiFunction<SentryEvent, Object, SentryEvent>` can be used to mutate, discard (return null), or return a completely new event.
1+
A `BiFunction<SentryEvent, Hint, SentryEvent>` can be used to mutate, discard (return null), or return a completely new event.
22

33
```java
44
import io.sentry.SentryEvent;
55
import io.sentry.SentryOptions;
6+
import io.sentry.Hint
67
import org.springframework.stereotype.Component;
78

89
@Component
910
public class CustomBeforeSendCallback implements SentryOptions.BeforeSendCallback {
1011
@Override
11-
public SentryEvent execute(SentryEvent event, Object hint) {
12-
if (hint instanceof MyHint) {
12+
public SentryEvent execute(SentryEvent event, Hint hint) {
13+
if (hint.get("my-hint-key") != null) {
1314
return null;
1415
} else {
1516
return event;
@@ -21,12 +22,13 @@ public class CustomBeforeSendCallback implements SentryOptions.BeforeSendCallbac
2122
```kotlin
2223
import io.sentry.SentryEvent
2324
import io.sentry.SentryOptions
25+
import io.sentry.Hint
2426
import org.springframework.stereotype.Component
2527

2628
@Component
2729
class CustomBeforeSendCallback : SentryOptions.BeforeSendCallback {
28-
override fun execute(event: SentryEvent, hint: Any?): SentryEvent? {
29-
if (hint is MyHint) {
30+
override fun execute(event: SentryEvent, hint: Hint): SentryEvent? {
31+
if (hint["my-hint-key"] != null) {
3032
null
3133
} else {
3234
event

src/includes/configuration/before-send-hint/java.spring.mdx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
A `BiFunction<SentryEvent, Object, SentryEvent>` can be used to mutate, discard (return null), or return a completely new event.
1+
A `BiFunction<SentryEvent, Hint, SentryEvent>` can be used to mutate, discard (return null), or return a completely new event.
22

33
```java
44
import io.sentry.SentryEvent;
55
import io.sentry.SentryOptions;
6+
import io.sentry.Hint
67
import org.springframework.stereotype.Component;
78

89
@Component
910
public class CustomBeforeSendCallback implements SentryOptions.BeforeSendCallback {
1011
@Override
11-
public SentryEvent execute(SentryEvent event, Object hint) {
12-
if (hint instanceof MyHint) {
12+
public SentryEvent execute(SentryEvent event, Hint hint) {
13+
if (hint.get("my-hint-key") != null) {
1314
return null;
1415
} else {
1516
return event;
@@ -21,12 +22,13 @@ public class CustomBeforeSendCallback implements SentryOptions.BeforeSendCallbac
2122
```kotlin
2223
import io.sentry.SentryEvent
2324
import io.sentry.SentryOptions
25+
import io.sentry.Hint
2426
import org.springframework.stereotype.Component
2527

2628
@Component
2729
class CustomBeforeSendCallback : SentryOptions.BeforeSendCallback {
28-
override fun execute(event: SentryEvent, hint: Any?): SentryEvent? {
29-
if (hint is MyHint) {
30+
override fun execute(event: SentryEvent, hint: Hnt): SentryEvent? {
31+
if (hint["my-hint-key"] != null) {
3032
null
3133
} else {
3234
event

src/includes/configuration/before-send/java.spring-boot.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
```java
44
import io.sentry.SentryEvent;
55
import io.sentry.SentryOptions;
6+
import io.sentry.Hint
67
import org.springframework.stereotype.Component;
78

89
@Component
910
public class CustomBeforeSendCallback implements SentryOptions.BeforeSendCallback {
1011
@Override
11-
public SentryEvent execute(SentryEvent event, Object hint) {
12+
public SentryEvent execute(SentryEvent event, Hint hint) {
1213
// Example: Never send server name in events
1314
event.setServerName(null);
1415
return event;
@@ -19,11 +20,12 @@ public class CustomBeforeSendCallback implements SentryOptions.BeforeSendCallbac
1920
```kotlin
2021
import io.sentry.SentryEvent
2122
import io.sentry.SentryOptions
23+
import io.sentry.Hint
2224
import org.springframework.stereotype.Component
2325

2426
@Component
2527
class CustomBeforeSendCallback : SentryOptions.BeforeSendCallback {
26-
override fun execute(event: SentryEvent, hint: Any?): SentryEvent? {
28+
override fun execute(event: SentryEvent, hint: Hint): SentryEvent? {
2729
// Example: Never send server name in events
2830
event.serverName = null
2931
return event

src/includes/configuration/before-send/java.spring.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
```java
44
import io.sentry.SentryEvent;
55
import io.sentry.SentryOptions;
6+
import io.sentry.Hint
67
import org.springframework.stereotype.Component;
78

89
@Component
910
public class CustomBeforeSendCallback implements SentryOptions.BeforeSendCallback {
1011
@Override
11-
public SentryEvent execute(SentryEvent event, Object hint) {
12+
public SentryEvent execute(SentryEvent event, Hint hint) {
1213
// Example: Never send server name in events
1314
event.setServerName(null);
1415
return event;
@@ -19,11 +20,12 @@ public class CustomBeforeSendCallback implements SentryOptions.BeforeSendCallbac
1920
```kotlin
2021
import io.sentry.SentryEvent
2122
import io.sentry.SentryOptions
23+
import io.sentry.Hint
2224
import org.springframework.stereotype.Component
2325

2426
@Component
2527
class CustomBeforeSendCallback : SentryOptions.BeforeSendCallback {
26-
override fun execute(event: SentryEvent, hint: Any?): SentryEvent? {
28+
override fun execute(event: SentryEvent, hint: Hint): SentryEvent? {
2729
// Example: Never send server name in events
2830
event.serverName = null
2931
return event

src/includes/configuration/config-intro/java.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ public class MyClass {
2525
```kotlin {tabTitle:Kotlin}
2626
import io.sentry.Sentry
2727
import io.sentry.SentryOptions.BeforeSendCallback
28+
import io.sentry.Hint
2829

2930
fun main() {
3031
Sentry.init { options ->
3132
// your Sentry project/dashboard
3233
options.dsn = "___PUBLIC_DSN___"
3334
options.release = "[email protected]+1"
34-
options.beforeSend = BeforeSendCallback { event: SentryEvent, hint: Any? ->
35+
options.beforeSend = BeforeSendCallback { event: SentryEvent, hint: Hint ->
3536
// Drop an event altogether:
3637
if (event.getTag("SomeTag") != null) {
3738
null
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
To add an attachment, you can either add it to the scope, pass it to any of the `capture` methods, or manipulate the list of attachments in an `EventProcessor` or `beforeSend`.
2+
3+
### Passing Attachments to Capture
4+
5+
You may pass attachments to any of the `capture` methods, for example, when capturing an exception:
6+
7+
```java
8+
import io.sentry.Attachment;
9+
import io.sentry.Hint;
10+
import io.sentry.Sentry;
11+
12+
Sentry.captureException(new IllegalStateException(), Hint.withAttachment("/path/to/file.txt"))
13+
```
14+
15+
```kotlin
16+
import io.sentry.Attachment;
17+
import io.sentry.Hint;
18+
import io.sentry.Sentry;
19+
20+
Sentry.captureException(IllegalStateException(), Hint.withAttachment("/path/to/file.txt"))
21+
```
22+
23+
### Adding Attachments in `EventProcessor`
24+
25+
You may also manipulate attachments in `EventProcessor`:
26+
27+
```java
28+
import io.sentry.Attachment;
29+
import io.sentry.EventProcessor;
30+
import io.sentry.Hint;
31+
import io.sentry.Sentry;
32+
import io.sentry.SentryEvent;
33+
34+
class AttachmentManipulationEventProcessor implements EventProcessor {
35+
@Override
36+
public SentryEvent process(SentryEvent event, Hint hint) {
37+
hint.addAttachment(new Attachment("/path/to/file.txt"))
38+
return event;
39+
}
40+
}
41+
42+
// Register the AttachmentManipulationEventProcessor using SentryOptions#addEventProcessor or Scope#addEventProcessor
43+
44+
// Send an event to Sentry. During construction of the event
45+
// the attachment will be added by the event processor.
46+
Sentry.captureMessage("Hello, world!");
47+
```
48+
49+
```kotlin
50+
import io.sentry.Attachment;
51+
import io.sentry.EventProcessor;
52+
import io.sentry.Hint;
53+
import io.sentry.Sentry
54+
import io.sentry.SentryEvent;
55+
import io.sentry.protocol.Message
56+
57+
class AttachmentManipulationEventProcessor: EventProcessor {
58+
override fun process(event: SentryEvent, hint: Hint): SentryEvent? {
59+
hint.addAttachment(Attachment("/path/to/file.txt"))
60+
return event
61+
}
62+
}
63+
64+
// Register the AttachmentManipulationEventProcessor using SentryOptions#addEventProcessor or Scope#addEventProcessor
65+
66+
// Send an event to Sentry. During construction of the event
67+
// the attachment will be added by the event processor.
68+
Sentry.captureMessage("Hello, world!")
69+
```
70+
71+
<Note>
72+
73+
Instead of adding attachments, you can also remove them, by setting a different (or empty) list of attachments using `Hint#setAttachments()`.
74+
75+
</Note>
76+
77+
### Adding Attachments in `beforeSend`
78+
79+
Another way of adding attachments is using `beforeSend`:
80+
81+
```java
82+
import io.sentry.Attachment;
83+
import io.sentry.Hint;
84+
import io.sentry.Sentry;
85+
86+
options.setBeforeSend((event, hint) -> {
87+
hint.addAttachment(new Attachment("/path/to/file.txt"))
88+
return event;
89+
});
90+
```
91+
92+
```kotlin
93+
import io.sentry.Attachment;
94+
import io.sentry.Hint;
95+
import io.sentry.Sentry;
96+
import io.sentry.SentryOptions.BeforeSendCallback
97+
98+
options.beforeSend = BeforeSendCallback { event, hint ->
99+
hint.addAttachment(Attachment("/path/to/file.txt"))
100+
event
101+
}
102+
```
103+
104+
<Note>
105+
106+
Instead of adding attachments, you can also remove them, by setting a different (or empty) list of attachments using `Hint#setAttachments()`.
107+
108+
</Note>
109+
110+
### Adding Attachments to the Scope

src/platforms/android/configuration/manual-init.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Or, to completely remove the merging of the `ContentProvider`:
2222
android:name="io.sentry.android.core.SentryInitProvider"
2323
android:authorities="${applicationId}.SentryInitProvider"
2424
tools:node="remove" />
25-
25+
2626
<provider
2727
android:name="io.sentry.android.core.SentryPerformanceProvider"
2828
android:authorities="${applicationId}.SentryPerformanceProvider"
@@ -63,6 +63,7 @@ public class SentryApplication extends Application {
6363
```kotlin
6464
import io.sentry.android.core.SentryAndroid
6565
import io.sentry.SentryOptions.BeforeSendCallback
66+
import io.sentry.Hint
6667
import android.app.Application
6768

6869
class SentryApplication : Application() {
@@ -74,7 +75,7 @@ class SentryApplication : Application() {
7475
// Add a callback that will be used before the event is sent to Sentry.
7576
// With this callback, you can modify the event or, when returning null, also discard the event.
7677
options.beforeSend =
77-
BeforeSendCallback { event: SentryEvent, hint: Any? ->
78+
BeforeSendCallback { event: SentryEvent, hint: Hint ->
7879
if (SentryLevel.DEBUG == event.level) {
7980
null
8081
} else {

src/platforms/android/migration.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ _New_:
252252

253253
```kotlin
254254
SentryOptions#addEventProcessor(object : EventProcessor {
255-
override fun process(event: SentryEvent, hint: Any?): SentryEvent? {
255+
override fun process(event: SentryEvent, hint: Hint): SentryEvent? {
256256
return event
257257
}
258258
})

src/platforms/common/enriching-events/attachments/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ In addition, you can set these parameters:
8484

8585
## Uploading Attachments
8686

87-
<PlatformSection supported={["native", "javascript"]}>
87+
<PlatformSection supported={["native", "javascript", "java"]}>
8888

8989
<PlatformSection supported={["javascript", "node"]}>
9090

0 commit comments

Comments
 (0)