sentry-javascript icon indicating copy to clipboard operation
sentry-javascript copied to clipboard

Add option to display event id in report dialog

Open Ten0 opened this issue 2 years ago • 2 comments
trafficstars

Problem Statement

When an error happens, a user may want to add additional details about what they were doing when the error happened, but they may also want to get the event id so that they can refer to it through other channels (so that it can be handled in priority).

Solution Brainstorm

It would be nice to add an option to the ReportDialogOptions (e.g. displayEventId: boolean) (that could then be used in all the integrations, e.g. createErrorHandler via dialogOptions) so that the event id is displayed in the dialog and can be copy/pasted to somehwere else.

Ideally that would have a "copy" button just next to the event id (with the classical copy icon).

image

Ten0 avatar Sep 11 '23 13:09 Ten0

Hey, thanks for the suggestions. We don't have any short or mid-term plans to implement this but if you find a lightweight solution and you submit a PR we can merge it in. The code for this modal is in the sentry repository https://github.com/getsentry/sentry

lforst avatar Sep 11 '23 13:09 lforst

@lforst opened as https://github.com/getsentry/sentry/pull/56002

Ten0 avatar Sep 11 '23 16:09 Ten0

Why was this issue closed?

While we think it would be helpful to solve this issue, we're busy with a lot of other tasks at the moment. Therefore, this issue is not a priority for us at this time. If you still want to see this resolved, please consider opening a PR for it - we're always happy to review them.

Please feel free to leave a comment if you think this issue should be reopened.

mydea avatar Dec 10 '24 10:12 mydea

I have already opened a PR for it. That is https://github.com/getsentry/sentry/pull/56002.

Ten0 avatar Dec 10 '24 10:12 Ten0

This is totally on me. Sorry for dropping it.

lforst avatar Dec 10 '24 10:12 lforst