Class: Foam::Otel::Railtie
- Inherits:
-
Rails::Railtie
- Object
- Rails::Railtie
- Foam::Otel::Railtie
- Defined in:
- lib/foam/otel/railtie.rb
Overview
Rails auto-wiring (zero customer effort): inserts the Rack middleware at position 0, records controller exceptions that rescue paths swallow before Rack sees them (ActionDispatch::ShowExceptions renders the 500 below any middleware), and attaches the logger bridge as a broadcast target. Loaded by lib/foam/otel.rb when Rails is present, but the hooks only ACTIVATE once init(rails: true) has run (Foam::Otel.rails_enabled?) — merely bundling the gem installs nothing, and rails: false opts out.
Class Attribute Summary collapse
-
.hooks_installed ⇒ Object
Returns the value of attribute hooks_installed.
Class Attribute Details
.hooks_installed ⇒ Object
Returns the value of attribute hooks_installed.
62 63 64 |
# File 'lib/foam/otel/railtie.rb', line 62 def hooks_installed @hooks_installed end |