Sha256: 9de3dffdcf3137adf6fb425801c1e9e25a336cbeae0afb7bbe35617e5b7ba5ee

Contents?: true

Size: 739 Bytes

Versions: 2

Compression:

Stored size: 739 Bytes

Contents

# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2016
if ENV.fetch('INSTANA_DISABLE', false) && defined?(::Instana)
  Object.send(:remove_const, :Instana)
end

# Boot the instana agent background thread.  If you wish to have greater
# control on the where and which thread this is run in, instead use
#
#   gem "instana", :require => "instana/setup"
#
# ...and override ::Instana::Agent.spawn_background_thread to boot
# the thread of your choice.
#

# :nocov:
unless ENV.fetch('INSTANA_DISABLE', false)
  require 'instana/setup'
  ::Instana::Activator.start
  ::Instana.agent.spawn_background_thread

  ::Instana.logger.info "Stan is on the scene.  Starting Instana instrumentation version #{::Instana::VERSION}"
end
# :nocov:

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
instana-1.217.1 lib/instana.rb
instana-1.217.0 lib/instana.rb