Skip to content

Commit 9c2d4d2

Browse files
committed
Improve flow
1 parent 72628f9 commit 9c2d4d2

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

docs/platforms/godot/user-feedback/index.mdx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,19 @@ Sentry makes it possible to collect user feedback, and optionally associate it w
1111

1212
The User Feedback API allows you to collect user feedback while using your own UI controls. You can submit feedback directly by creating an instance of `SentryFeedback` class, setting the required `message` and optional fields, then submitting it using `SentrySDK.capture_feedback(feedback)`.
1313

14-
Sentry can optionally pair this feedback with an event, giving you additional insight into issues. Sentry needs the `event_id` to be able to associate the user feedback to the corresponding event. For example, to get the `event_id`, you can use <PlatformLink to="/configuration/options/#before-send">before_send</PlatformLink>, or the return value of the method capturing an event.
15-
1614
```GDScript
1715
var feedback := SentryFeedback.new()
1816
feedback.message = "I'm stuck in the wall!"
1917
feedback.contact_email = "[email protected]"
2018
feedback.name = "Bob"
2119
22-
# Optionally, associate the feedback with an event
23-
# feedback.associated_event_id = event_id
24-
2520
SentrySDK.capture_feedback(feedback)
2621
```
22+
23+
Sentry can optionally pair this feedback with an event, giving you additional insight into issues. Sentry needs the `event_id` to be able to associate the user feedback to the corresponding event. For example, to get the `event_id`, you can use <PlatformLink to="/configuration/options/#before-send">before_send</PlatformLink>, or the return value of the method capturing an event.
24+
25+
```GDScript
26+
var event_id = SentrySDK.capture_message("An event that will get user feedback.")
27+
# ...
28+
feedback.associated_event_id = event_id
29+
```

0 commit comments

Comments
 (0)