Module: Dry::Monitor

Extended by:
Core::Extensions
Includes:
Core::Constants
Defined in:
lib/dry/monitor.rb,
lib/dry/monitor/clock.rb,
lib/dry/monitor/logger.rb,
lib/dry/monitor/version.rb,
lib/dry/monitor/sql/logger.rb,
lib/dry/monitor/rack/logger.rb,
lib/dry/monitor/notifications.rb,
lib/dry/monitor/rack/middleware.rb,
lib/dry/monitor/sql/colorizers/rouge.rb,
lib/dry/monitor/sql/colorizers/default.rb

Defined Under Namespace

Modules: Rack, SQL Classes: Clock, Logger, Notifications

Constant Summary collapse

VERSION =
"1.0.1"
CLOCK =
Clock.new

Class Method Summary collapse

Class Method Details

.loaderObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/dry/monitor.rb', line 24

def self.loader
  @loader ||= Zeitwerk::Loader.new.tap do |loader|
    root = File.expand_path("..", __dir__)
    loader.tag = "dry-monitor"
    loader.inflector = Zeitwerk::GemInflector.new("#{root}/dry-monitor.rb")
    loader.push_dir(root)
    loader.ignore(
      "#{root}/dry-monitor.rb",
      "#{root}/dry/monitor/version.rb",
      "#{root}/dry/monitor/rack/**/*.rb",
      "#{root}/dry/monitor/sql/**/*.rb"
    )
    loader.inflector.inflect "sql" => "SQL"
  end
end