Module: BugReportsClient::ErrorContext

Extended by:
ActiveSupport::Concern
Defined in:
lib/bug_reports_client/error_context.rb

Overview

Included into ActionController::Base by the engine so every request tags the Rails error-reporting context with the signed-in user's id. When an unhandled 500 is captured, the reporter reads the id back and records an ErrorEvent against that user - powering the "did your problem relate to this error?" prompt on the bug report form. Deliberately silent on any failure: attribution is best-effort and must never affect the request.