Skip to content
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

Log url to errors #1786

Open
grosser opened this issue Apr 5, 2022 · 3 comments
Open

Log url to errors #1786

grosser opened this issue Apr 5, 2022 · 3 comments
Assignees
Projects

Comments

@grosser
Copy link

grosser commented Apr 5, 2022

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.

@st0012
Copy link
Collaborator

st0012 commented Apr 23, 2022

@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.

@st0012 st0012 added this to To do in 5.x via automation Apr 23, 2022
@grosser
Copy link
Author

grosser commented Apr 23, 2022

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.

@sl0thentr0py
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
5.x
To do
Development

No branches or pull requests

4 participants