Skip to content

Subscribe to Rails.error automatically again? #2834

Open

Description

@sato11

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 rails/rails#43625 (comment) and following rails/rails#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?

Activity

  1. linear commented on Jan 14, 2026

    @linear
  2. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Jan 14, 2026
  3. sl0thentr0py commented on Jan 15, 2026

    @sl0thentr0py
    Member

    @solnic can you take a look here

  4. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Jan 15, 2026
  5. solnic commented on Jan 16, 2026

    @solnic
    Collaborator

    We can enable it by default but that's a breaking change so it has to wait for the next major release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions