Sha256: b82912d3741dc3629255f4114ee68343d7025d2472e599b2e8a049c51ac73185

Contents?: true

Size: 859 Bytes

Versions: 28

Compression:

Stored size: 859 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

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
instana-1.217.1 lib/instana/base.rb
instana-1.217.0 lib/instana/base.rb
instana-1.216.0 lib/instana/base.rb
instana-1.215.1 lib/instana/base.rb
instana-1.215.0 lib/instana/base.rb
instana-1.214.4 lib/instana/base.rb
instana-1.214.3 lib/instana/base.rb
instana-1.214.2 lib/instana/base.rb
instana-1.214.1 lib/instana/base.rb
instana-1.214.0 lib/instana/base.rb
instana-1.213.3 lib/instana/base.rb
instana-1.213.2 lib/instana/base.rb
instana-1.213.1 lib/instana/base.rb
instana-1.213.0 lib/instana/base.rb
instana-1.212.0 lib/instana/base.rb
instana-1.211.0 lib/instana/base.rb
instana-1.210.1 lib/instana/base.rb
instana-1.210.0 lib/instana/base.rb
instana-1.209.8 lib/instana/base.rb
instana-1.209.7 lib/instana/base.rb