You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* initial refactor to add http method to common
* add dotnet
* update stale link
* modify include directory name
* modify dotnet to point to aspnet and aspnetcore as needed
* fix broken links
Copy file name to clipboardExpand all lines: src/includes/user-feedback/sdk-api-example/apple.mdx
-10Lines changed: 0 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,3 @@
1
-
---
2
-
title: "User Feedback"
3
-
sidebar_order: 105
4
-
5
-
description: "Learn more about the user feedback API, which provides the ability to collect user information when an event occurs. Sentry pairs the feedback with the original event, giving you additional insight into issues."
6
-
---
7
-
8
-
The user feedback API provides the ability to collect user information when an event occurs. Sentry pairs the feedback with the original event, giving you additional insight into issues.
9
-
Sentry needs the `eventId` to be able to associate the user feedback to the corresponding event. To get the `eventId`, for example, you can use the <PlatformLinkto="/configuration/options/#before-send">beforeSend</PlatformLink> or the return value of the methods capturing an event.
Copy file name to clipboardExpand all lines: src/platforms/common/enriching-events/user-feedback.mdx
+59-14Lines changed: 59 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -3,36 +3,75 @@ title: "User Feedback"
3
3
sidebar_order: 105
4
4
redirect_from:
5
5
- /learn/user-feedback/
6
-
description: "Learn more about the embeddable JavaScript widget, which requests and collects the user information when an event occurs. Sentry pairs the feedback with the original event, giving you additional insight into issues."
6
+
description: "Learn more about collecting user feedback when an event occurs. Sentry pairs the feedback with the original event, giving you additional insight into issues."
7
7
notSupported:
8
-
- android
9
-
- apple
10
8
- native
11
-
- native.breakpad
12
-
- native.crashpad
13
-
- native.minidumps
14
-
- native.wasm
15
-
- native.ue4
16
9
- dart
17
10
- flutter
18
11
- ruby
19
12
---
20
13
21
-
When a user experiences an error, Sentry provides the ability to collect additional feedback. This type of feedback is useful when you may typically render a plain error page (the classic `500.html`).
14
+
When a user experiences an error, Sentry provides the ability to collect additional feedback. You can collect feedback according to the method supported by the SDK.
22
15
23
-
To collect feedback, use the embeddable JavaScript widget, which requests and collects the user's name, email address, and a description of what occurred. When feedback is provided, Sentry pairs the feedback with the original event, giving you additional insights into issues.
The user feedback API provides the ability to collect user information when an event occurs. You can use the same programming languge you have in your app to send user feedback. In this case, the SDK creates the HTTP request so you don't have to deal with posting data via HTTP.
21
+
22
+
Sentry pairs the feedback with the original event, giving you additional insight into issues. Sentry needs the `eventId` to be able to associate the user feedback to the corresponding event. To get the `eventId`, for example, you can use the <PlatformLinkto="/configuration/options/#before-send">beforeSend</PlatformLink> or the return value of the methods capturing an event.
User Feedback for **[ASP.NET](/platforms/dotnet/guides/aspnet/enriching-events/user-feedback/#integration)** or **[ASP.NET Core](/platforms/dotnet/guides/aspnetcore/enriching-events/user-feedback/#integration)** supply integrations specific to supporting those SDKs.
35
+
36
+
</Note>
37
+
38
+
You can create a form to collect the user input in your prefered framework, and use the SDK's API to send the information to Sentry. You can also use the widget, as described below. If you'd prefer an alternative to the widget or do not have a JavaScript frontend, you can use this API or a [Web API](/api/projects/submit-user-feedback/).
39
+
40
+
```csharp {tabTitle:C#}
41
+
usingSentry;
42
+
43
+
vareventId=SentrySdk.CaptureMessage("An event that will receive user feedback.");
44
+
45
+
SentrySdk.CaptureUserFeedback(eventId, "[email protected]", "It broke.", "The User");
46
+
```
47
+
48
+
```fsharp {tabTitle:F#}
49
+
open Sentry
50
+
51
+
let eventId = SentrySdk.CaptureMessage("An event that will receive user feedback.")
52
+
53
+
SentrySdk.CaptureUserFeedback(eventId, "[email protected]", "It broke.", "The User")
Our embeddable JavaScript widget is useful when you may typically render a plain error page (the classic `500.html`) on your website.
63
+
64
+
To collect feedback, the widget requests and collects the user's name, email address, and a description of what occurred. When feedback is provided, Sentry pairs the feedback with the original event, giving you additional insights into issues.
24
65
25
66
The screenshot below provides an example of the User Feedback widget, though yours may differ depending on your customization:
26
67
27
68

28
69
29
-
##Collecting Feedback
70
+
### Integration
30
71
31
72
To integrate the widget, you'll need to be running version 2.1 or newer of our JavaScript SDK. The widget authenticates with your public DSN, then passes in the Event ID that was generated on your backend.
32
73
33
-
**If you'd prefer an alternative to the widget or do not have a JavaScript frontend, you can use the [User Feedback API](https://docs.sentry.io/api/projects/post-project-user-reports/).**
@@ -60,3 +99,9 @@ An override for Sentry’s automatic language detection (e.g. `lang=de`)
60
99
|`errorFormEntry`| Some fields were invalid. Please correct the errors and try again. |
61
100
|`successMessage`| Your feedback has been sent. Thank you! |
62
101
|`onLoad`| n/a |
102
+
103
+
## User Feedback API
104
+
105
+
If you'd prefer an alternative to the widget or do not have a JavaScript frontend, you can use the [User Feedback API](/api/projects/submit-user-feedback/).
0 commit comments