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

#clearObject



18
19
# File 'lib/lightstep/transport/callback.rb', line 18

def clear
end

#closeObject



15
16
# File 'lib/lightstep/transport/callback.rb', line 15

def close
end

#flushObject



21
22
# File 'lib/lightstep/transport/callback.rb', line 21

def flush
end

#report(report) ⇒ Object



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

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