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