Class: LightStep::GlobalTracer
- 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
Instance Method Summary collapse
-
#configure(**options) ⇒ Object
Configure the GlobalTracer See Tracer#initialize.
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
17 18 19 20 21 |
# File 'lib/lightstep/global_tracer.rb', line 17 def configure(**) raise ConfigurationError, 'Already configured' if configured self.configured = true super end |