class LightStep::GlobalTracer

GlobalTracer is a singleton version of the LightStep::Tracer.

You should access it via `LightStep.instance`.

Attributes

configured[RW]

Public Class Methods

new() click to toggle source
# File lib/lightstep/global_tracer.rb, line 9
def initialize
end

Public Instance Methods

configure(**options) click to toggle source

Configure the GlobalTracer See {LightStep::Tracer#initialize}

Calls superclass method
# File lib/lightstep/global_tracer.rb, line 17
def configure(**options)
  if configured
    LightStep.logger.warn "[LightStep] Already configured"
    LightStep.logger.info "Stack trace:\n\t#{caller.join("\n\t")}"
    return
  end

  self.configured = true
  super
end