module Sqreen::Ecosystem::DispatchTable

Configured by the ecosystem client

Attributes

add_request_start_listener[RW]

argument: block taking a Rack::Request see +Sqreen::EcosystemIntegration::RequestLifecycleTracking#add_start_observer+

consume_signal[RW]

data consumption argument: Sqreen::Kit::Signals::Signal see +Sqreen::EcosystemIntegration::SignalConsumption#consume_signal+

fetch_logger[RW]
instrument[RW]

argument: callback taking:

  • the method to instrument

  • A Hash{Symbol=>Proc} with the advice. The proc takes the

arguments and the ball, so these details of the instrumentation implementation leak through the abstraction see Sqreen::EcosystemIntegration::InstrumentationService

Public Class Methods

reset() click to toggle source
# File lib/sqreen/ecosystem/dispatch_table.rb, line 32
def reset
  instance_variables.each do |ia|
    instance_variable_set(ia, nil)
  end

  # set default logger
  logger = ::Logger.new(STDERR)
  logger.level = ::Logger::WARN
  logger.progname = 'sqreen-ecosystem'
  self.fetch_logger = proc { logger }
end