getsentry / getsentry/sentry-ruby

Log url to errors

Open
#1,786 3 comments 0 reactions 1 assignee Claimed by @sl0thentr0py View on GitHub
Errors Feature Ruby sentry-ruby
Dominant language
Ruby
Stars
987
Forks
541
Avg merge
17h 40m
Merged PRs (30d)
19

Description

**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//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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.