module Skylight::Core::Instrumentable

Public Class Methods

included(base) click to toggle source
# File lib/skylight/core/instrumentable.rb, line 4
def self.included(base)
  base.extend(Util::Logging)
  base.extend(ClassMethods)

  base.const_set(:LOCK, Mutex.new)

  base.class_eval do
    at_exit { stop! }
  end

  Skylight::Core::Fanout.register(base)
end