Class: ScoutApm::SynchronousRecorder

Inherits:
Object
  • Object
show all
Defined in:
lib/scout_apm/synchronous_recorder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(context) ⇒ SynchronousRecorder

Returns a new instance of SynchronousRecorder.



9
10
11
# File 'lib/scout_apm/synchronous_recorder.rb', line 9

def initialize(context)
  @context = context
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



7
8
9
# File 'lib/scout_apm/synchronous_recorder.rb', line 7

def context
  @context
end

Instance Method Details

#loggerObject



13
14
15
# File 'lib/scout_apm/synchronous_recorder.rb', line 13

def logger
  context.logger
end

#record!(request) ⇒ Object



26
27
28
# File 'lib/scout_apm/synchronous_recorder.rb', line 26

def record!(request)
  request.record!
end

#startObject



17
18
19
20
# File 'lib/scout_apm/synchronous_recorder.rb', line 17

def start
  # nothing to do
  self
end

#stopObject



22
23
24
# File 'lib/scout_apm/synchronous_recorder.rb', line 22

def stop
  # nothing to do
end