Class: Logsy::Railtie
- Inherits:
-
Rails::Railtie
- Object
- Rails::Railtie
- Logsy::Railtie
- Defined in:
- lib/logsy/railtie.rb
Overview
Wires Logsy into Rails with zero per-app setup:
- Inserts the request-id capturing middleware right after ActionDispatch::RequestId, before Rails::Rack::Logger — early enough that the "Started GET ..." line is already tagged.
- Includes Logsy::JobHooks into ActiveJob::Base so every job emits a summary wide event (disable via config.auto_include_job_hooks = false).
- Registers the bundled Sidekiq middleware when Sidekiq is loaded (disable via config.auto_register_sidekiq_middleware = false).