getsentry / getsentry/sentry-ruby
Log url to errors
Đang mở
Errors
Feature
Ruby
sentry-ruby
- Ngôn ngữ chính
- Ruby
- Star
- 987
- Fork
- 541
- Merge trung bình
- 17 giờ 40 phút
- Pull request đã merge (30 ngày)
- 19
Mô tả
**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.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.