Class: SignalFx::Tracing::Instrumenter::Register

Inherits:
Object
  • Object
show all
Defined in:
lib/signalfx/tracing/register.rb

Class Method Summary collapse

Class Method Details

.add_lib(patch_key, patch_module) ⇒ Object



24
25
26
# File 'lib/signalfx/tracing/register.rb', line 24

def self.add_lib(patch_key, patch_module)
  @available_libs[patch_key] = patch_module
end

.available_libsObject



9
10
11
# File 'lib/signalfx/tracing/register.rb', line 9

def self.available_libs
    return @available_libs
end

.include_patchesObject



17
18
19
20
21
22
# File 'lib/signalfx/tracing/register.rb', line 17

def self.include_patches
    # all of the available patches must be added to the table here
    @available_libs[:PatchingTest] = Patches::PatchingTest::ToPatch.new

    @initialized = true
end

.initialized?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/signalfx/tracing/register.rb', line 13

def self.initialized?
    return @initialized
end