Class: LightStep::Transport::Callback

Inherits:
Base
  • Object
show all
Defined in:
lib/lightstep/transport/callback.rb

Instance Method Summary collapse

Constructor Details

#initialize(callback:) ⇒ Callback

Returns a new instance of Callback.



6
7
8
# File 'lib/lightstep/transport/callback.rb', line 6

def initialize(callback:)
  @callback = callback
end

Instance Method Details

#report(report) ⇒ Object



10
11
12
13
# File 'lib/lightstep/transport/callback.rb', line 10

def report(report)
  @callback.call(report)
  nil
end