module RequestTracer
Constants
- B3_OPT_HEADERS
- B3_REQUIRED_FIELDS
- B3_REQUIRED_FIELDS_FROM_SHORT_NAMES
- B3_REQUIRED_FIELD_HEADER_MAP
- B3_REQUIRED_HEADERS
- B3_REQUIRED_HEADER_FIELD_MAP
- VERSION
Public Class Methods
integrate_with(*services)
click to toggle source
# File lib/request_tracer.rb, line 11 def self.integrate_with(*services) services.each do |service| require_relative "request_tracer/integration/#{service}_handler" class_name = service.to_s.split('_').collect(&:capitalize).join + 'Handler' integration_module = RequestTracer::Integration.const_get(class_name) integration_module.activate end end
latest_trace_hash(*args)
click to toggle source
# File lib/request_tracer.rb, line 20 def self.latest_trace_hash(*args) Trace.latest.to_h end