-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add attachments to user feedback #49946
Comments
Assigning to @getsentry/support for routing, due by Tuesday, May 30th at 5:00 pm (sfo). ⏲️ |
Routing to @getsentry/product-owners-user-feedback for triage, due by Thursday, June 1st at 11:54 am (sfo). ⏲️ |
Today the feedback you can submit with the SDK takes an I believe we can improve this by letting you capture feedbacks without the need to capture an event (error/msg), and we recently did that to power our new Widget. So it's something we can look into going forward but for now I suggest using the captureMessage with Attachment + captureUserFeedback route |
We are also adding screenshotting to our User Feedback widget: #63749 |
For reference the old API is: https://develop.sentry.dev/sdk/features/#user-feedback The new API could take a local scope: let feedback = {name:"", message:""}
Sentry.captureUserFeedback(feedback, scope => scope.addAttachment(...)); The blocker for this approach is the backend accepting the user feedback envelope together with attachments, as we allow for error events. @JoshFerge is this something you can help us with? |
The new/updated api to call is being implemented in getsentry/sentry-javascript#11428 It'll be available on v8.0.0 of the SDK as The specific method is implemented with this signature & types:
Look out for it once #11428 lands, which should be part of 8.0.0-beta.6 and beyond. |
Hey, this is possible to do in v8 now - you can use it like follows: Sentry.captureFeedback(
{ message: "I really like your App, thanks!" },
{
attachments: [
{
filename: "screenshot.png",
data: "base64-encoded-image",
},
],
}
); |
Problem Statement
I want users to be able to report issues and feedback with attachments such log files or images.
Solution Brainstorm
Use similar structure as events for User feedback.
Product Area
User Feedback
The text was updated successfully, but these errors were encountered: