getsentry / getsentry/sentry-ruby

Log url to errors

Aperta
#1,786 3 commenti 0 reazioni 1 assegnatario Rivendicata da @sl0thentr0py Vedi su GitHub
Errors Feature Ruby sentry-ruby
Lingua principale
Ruby
Stelle
987
Fork
541
Merge medio
17h 40m
PR unite (30g)
19

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.