Sha256: db1d6cc561700132d7b1bb659f163e528f3c2177c71482639074706fd255c20c

Contents?: true

Size: 813 Bytes

Versions: 35

Compression:

Stored size: 813 Bytes

Contents

# Copyright (c) 2013 AppNeta, Inc.
# All rights reserved.

module Oboe
  ##
  # 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
        Oboe::Loading.load_access_key
        Oboe::Inst.load_instrumentation
      end
    end
  end
end

if Oboe.loaded and !Oboe.framework?
  ::Oboe::Ruby.load
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
oboe-2.7.15.1-java lib/oboe/ruby.rb
oboe-2.7.15.1 lib/oboe/ruby.rb
oboe-2.7.14.1-java lib/oboe/ruby.rb
oboe-2.7.14.1 lib/oboe/ruby.rb
oboe-2.7.13.3-java lib/oboe/ruby.rb
oboe-2.7.13.3 lib/oboe/ruby.rb
oboe-2.7.12.1-java lib/oboe/ruby.rb
oboe-2.7.12.1 lib/oboe/ruby.rb
oboe-2.7.11.1 lib/oboe/ruby.rb
oboe-2.7.11.1-java lib/oboe/ruby.rb
oboe-2.7.10.1-java lib/oboe/ruby.rb
oboe-2.7.10.1 lib/oboe/ruby.rb
oboe-2.7.9.6-java lib/oboe/ruby.rb
oboe-2.7.9.6 lib/oboe/ruby.rb
oboe-2.7.9.lynx1 lib/oboe/ruby.rb
oboe-2.7.8.1-java lib/oboe/ruby.rb
oboe-2.7.8.1 lib/oboe/ruby.rb
oboe-2.7.7.1-java lib/oboe/ruby.rb
oboe-2.7.7.1 lib/oboe/ruby.rb
oboe-2.7.6.2-java lib/oboe/ruby.rb