module Sqreen::Ecosystem::ModuleApi::Tracing

Public Class Methods

included(mod) click to toggle source
# File lib/sqreen/ecosystem/module_api/tracing.rb, line 14
def self.included(mod)
  mod.extend(ClassMethods)
end

Public Instance Methods

consumed_type() click to toggle source
# File lib/sqreen/ecosystem/module_api/tracing.rb, line 33
def consumed_type
  self.class.instance_variable_get(:@consumes) \
    || raise('@consumes not specified')
end
receive(_data) click to toggle source

including class must implement it

# File lib/sqreen/ecosystem/module_api/tracing.rb, line 44
def receive(_data)
  raise NotImplementedError
end
scope(_hints = {}) click to toggle source
# File lib/sqreen/ecosystem/module_api/tracing.rb, line 38
def scope(_hints = {})
  self.class.instance_variable_get(:@fixed_scope) \
    || raise('@fixed_scope not set')
end