Class: LightStep::GlobalTracer

Inherits:
Tracer
  • Object
show all
Includes:
Singleton
Defined in:
lib/lightstep/global_tracer.rb

Overview

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

You should access it via ‘LightStep.instance`.

Constant Summary

Constants inherited from Tracer

Tracer::FORMAT_BINARY, Tracer::FORMAT_TEXT_MAP

Instance Attribute Summary

Attributes inherited from Tracer

#access_token, #guid

Instance Method Summary collapse

Methods inherited from Tracer

#disable, #enable, #enabled?, #extract, #finish_span, #flush, #inject, #max_log_records, #max_log_records=, #max_span_records, #max_span_records=, #start_span

Instance Method Details

#configure(**options) ⇒ Object

Configure the GlobalTracer See Tracer#initialize

Raises:



17
18
19
20
21
# File 'lib/lightstep/global_tracer.rb', line 17

def configure(**options)
  raise ConfigurationError, 'Already configured' if configured
  self.configured = true
  super
end