Subscribe to `Rails.error` automatically again?

Aberta
#2,834 3 comentários 0 reações 1 responsável Ver no GitHub

Mantenedores costumam responder em até 2 dias

@solnic já está trabalhando nisso.

Desde 14/1/2026.

Avaliação

Esta issue ainda não foi avaliada.

Descrição

Logs Question Ruby sentry-rails Task
Problem Statement

In order to subscribe to Error Reporter aka Rails.error (https://api.rubyonrails.org/classes/ActiveSupport/ErrorReporter.html) we need to set config.rails.register_error_subscriber = true since 5.3.0 (cf. #1771).

This is possibly confusing, when Error Reporting in Rails Applications is eager to assume the integration takes place just automatically, as it says;

Some error-reporting libraries, such as Sentry's and Honeybadger's, automatically register a subscriber for you.

It would be great if the subscription happens automatically just like the guide emphasizes. If it's still up to users to opt in to the feature, it could be the guide misinforming. In any case I think there is a chance for improvement.

Solution Brainstorm

According to #1771, the decision to disable the integration by default looks like a compromise given that Rails 7.0's error reporter had an issue. Reading further the feedback thread at https://github.com/rails/rails/pull/43625#issuecomment-1072514175 and following https://github.com/rails/rails/pull/44998 then #1834, is it possible to assume the issue has been resolved and it is ready to make the subscriber registered automatically for applications whose Rails version is 7.1 or higher?

Linguagem predominante
Ruby
Estrelas
990
Forks
552
Merge médio
2d 16h
PRs com merge (30d)
29

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de getsentry/sentry-ruby

Todas as issues de getsentry/sentry-ruby

Issues semelhantes

Mais issues de Ruby

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.