Sha256: 0040acf52627bdb1a39c05e35e55b4bd446be4fe91b6d83a2d992de8b106445e
Contents?: true
Size: 1 KB
Versions: 23
Compression:
Stored size: 1 KB
Contents
# Copyright (c) 2016 SolarWinds, LLC. # All rights reserved. module AppOpticsAPM ## # This module provides a method to manually initialize the # Ruby instrumentation. Normally this is done by detecting # frameworks at load time and inserting initialization hooks. module Ruby class << self def initialize load end ## # The core method to load Ruby instrumentation. Call this # from raw Ruby scripts or in Ruby applications where a # supported framework isn't being used. Supported frameworks # will instead be detected at load time and initialization is # automatic. def load # In case some apps call this manually, make sure # that the gem is fully loaded and not in no-op # mode (e.g. on unsupported platforms etc.) if AppOpticsAPM.loaded AppOpticsAPM::Inst.load_instrumentation end end end end end if AppOpticsAPM.loaded && !AppOpticsAPM.framework? ::AppOpticsAPM::Ruby.load end
Version data entries
23 entries across 23 versions & 1 rubygems