Module: Bigcommerce::Lightstep::Traceable

Defined in:
lib/bigcommerce/lightstep/traceable.rb

Overview

Module for adding drop-in tracing to any method. Example usage:

“‘ruby class MyService

include ::Bigcommerce::Lightstep::Traceable

trace :call, 'operation.do-my-thing' do |span, product, options|
  span.set_tag('store_id', request.store_id)
end
# or, with no block:
trace :call, 'operation.do-my-thing'

def call(product:, options:)
  # ...
end

end “‘

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



25
26
27
# File 'lib/bigcommerce/lightstep/traceable.rb', line 25

def self.included(base)
  base.extend ClassMethods
end