Sha256: d18adeb3c4ae3956c423fdddffaba525da1f4392efaef471bbb37854bcbe8138

Contents?: true

Size: 970 Bytes

Versions: 26

Compression:

Stored size: 970 Bytes

Contents

# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2016

require "logger"
require "instana/version"
require "instana/util"

module Instana
  class << self
    attr_accessor :agent
    attr_accessor :tracer
    attr_accessor :processor
    attr_accessor :config
    attr_accessor :pid
    attr_reader :secrets
    attr_reader :serverless

    ##
    # setup
    #
    # Setup the Instana language agent to an informal "ready
    # to run" state.
    #
    def setup
      @agent  = ::Instana::Backend::Agent.new
      @tracer = ::Instana::Tracer.new
      @processor = ::Instana::Processor.new
      @secrets = ::Instana::Secrets.new
      @serverless = ::Instana::Serverless.new
    end

    def logger
      @logger ||= ::Instana::LoggerDelegator.new(Logger.new(STDOUT))
    end

    def logger=(val)
      @logger.__setobj__(val)
    end
  end
end

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

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
instana-1.209.0.pre1 lib/instana/base.rb
instana-1.208.0 lib/instana/base.rb
instana-1.207.0 lib/instana/base.rb
instana-1.206.0 lib/instana/base.rb
instana-1.205.0 lib/instana/base.rb
instana-1.204.0 lib/instana/base.rb
instana-1.204.0.pre3 lib/instana/base.rb
instana-1.204.0.pre2 lib/instana/base.rb
instana-1.204.0.pre1 lib/instana/base.rb
instana-1.203.2 lib/instana/base.rb
instana-1.203.1 lib/instana/base.rb
instana-1.203.0 lib/instana/base.rb
instana-1.202.0 lib/instana/base.rb
instana-1.201.0 lib/instana/base.rb
instana-1.201.0.pre1 lib/instana/base.rb
instana-1.200.0 lib/instana/base.rb
instana-1.200.0.pre1 lib/instana/base.rb
instana-1.199.6 lib/instana/base.rb
instana-1.199.5 lib/instana/base.rb
instana-1.199.4 lib/instana/base.rb