Class: Logsy::Railtie

Inherits:
Rails::Railtie
  • Object
show all
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).