-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
User Feedback #153
Comments
@joshnoe This is something that would be useful for .NET client apps like WPF and WinForms. |
+1. It may also be useful to fire a URL at a web browser with the event Id in it if the app is crashing because there will be no UI to host the dialog. A hosted endpoint would be ideal for this, or one we could host ourselves. Oh, I can see the problem here - by the time the event Id gets back the app it may be gone. Leaving this here for ponderings. |
The Id is always defined by the SDK, even before flushing the event to Sentry it'll be available in In a managed desktop app (WinForms, WPF or something), it should be able to display a form to the user before crashing the app. Unless it's crashing due to The idea of loading a browser at a URL could work. We'd need to support this form somewhere in Sentry. |
Thanks for the clarification, I assumed the Id was generated and sent back by the web service. That makes things more straightforward. |
@CADbloke That happens as a fallback when the client doesn't define the Id. Our SDKs always set the GUID ahead though. |
I ended up implementing the User Feedback part in our code, it's quite simple but the only issue for now that I see are offline errors and the other point where the CaptureException was called but the user feedback was sent before the error event reached the sentry.io server.
About UI, it's complicated, because it involves so many platforms, I wouldn't see any problem if the dev would have to implement their layout to the .net platform that they are working with. |
For more clarification, in the url the values seem to be needed to be replaced...
see: As your solution did not work, yet for me. |
@ibm5155 where did you trigger your feedback dialog? I currently tried on
|
I trigger after an exception, there's a generic function on almost every catch of our code where it sends the sentry exception, get the sent event id and later open the feedback dialog. But in short , an exception happens, it goes into catch a view is called passing the exception as an argument, I use the feedback screen to Send the error to sentry and to also ask for the feedback, here's a snip of what I do
|
Thanks. Now I tried with postman to trigger the feedback-url and found, that I need authentication.
and I did that in the BeforeSend:
That really worked for me now. I think your example @ibm5155 was using ASP. I'm using WPF. |
Sentry needs an endpoint that can take a UserFeedback request built with the information contained in a DSN. Meaning without org and project slugs. I don't think it's planned right now but it's in the backlog. |
Some update: We're adding this to Sentry Cocoa: getsentry/sentry-cocoa#805, requested here. Sentry Java also got this request, 4 years ago. And given that this SDK now got Envelopes (#544) it should be straight forward to add it here. So coming soon :) |
that's great news @bruno-garcia :D |
Thanks for adding this @lucas-zimerman ! |
Sentry allows user feedback to be submitted and associated with events.
https://docs.sentry.io/api/projects/post-project-user-reports/
It'd be great to have this abstracted into this library. Happy to take it on if it's something that seems appropriate?
The text was updated successfully, but these errors were encountered: