Module: Bigcommerce::Lightstep
- Extended by:
- Configuration
- Defined in:
- lib/bigcommerce/lightstep.rb,
lib/bigcommerce/lightstep/errors.rb,
lib/bigcommerce/lightstep/tracer.rb,
lib/bigcommerce/lightstep/version.rb,
lib/bigcommerce/lightstep/transport.rb,
lib/bigcommerce/lightstep/configuration.rb,
lib/bigcommerce/lightstep/transport_factory.rb,
lib/bigcommerce/lightstep/middleware/faraday.rb,
lib/bigcommerce/lightstep/rails_controller_instrumentation.rb
Overview
Lightstep module
Defined Under Namespace
Modules: Configuration, Errors, Middleware, RailsControllerInstrumentation Classes: Tracer, Transport, TransportFactory
Constant Summary collapse
- VERSION =
'1.2.2'.freeze
Constants included from Configuration
Configuration::VALID_CONFIG_KEYS
Class Method Summary collapse
Methods included from Configuration
configure, configured?, environment, extended, options, reset
Class Method Details
.start(component_name: nil, transport_factory: nil) ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/bigcommerce/lightstep.rb', line 36 def self.start(component_name: nil, transport_factory: nil) component_name ||= ::Bigcommerce::Lightstep.component_name transport_factory ||= ::Bigcommerce::Lightstep::TransportFactory.new ::LightStep.logger = logger ::LightStep.configure( component_name: component_name, transport: transport_factory.build ) ::LightStep.instance.max_span_records = ::Bigcommerce::Lightstep.max_buffered_spans ::LightStep.instance.max_log_records = ::Bigcommerce::Lightstep.max_log_records ::LightStep.instance.report_period_seconds = ::Bigcommerce::Lightstep.max_reporting_interval_seconds end |