Log url to errors
Describe the idea show a clickable url instead of just the event id when logging an error
Why do you think it's beneficial to most of the users they don't need to be a sentry expert to find the error
Possible implementation
# make events clickable
Sentry::LoggingHelper.prepend(Module.new do
def log_info(message)
super(message.sub(
/\[event\] (\S+) to Sentry/,
"[event] https://sentry.io/organizations/<ORG>/issues/?query=\\1 to Sentry"
))
end
end)
to make this reusable a project setting might be needed, or the project could be included in the sentry api reply.
@sl0thentr0py Can you check if this is possible for both sentry.io and self-hosted users? I think it'd be helpful but not sure what's our stance for this.
I think it should be possible since the sentry_dsn is unique and the api could return a url to go to. If that for some reason does not work, at least a "base url" setting should always work.
The canonical way right now to use the event_id is the showReportDialog functionality but I agree that this whole flow could be optimized for certain languages/frameworks.
I'll bring this up internally.