Class: ScoutApm::SynchronousRecorder
- Inherits:
-
Object
- Object
- ScoutApm::SynchronousRecorder
- Defined in:
- lib/scout_apm/synchronous_recorder.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize(logger) ⇒ SynchronousRecorder
constructor
A new instance of SynchronousRecorder.
- #record!(request) ⇒ Object
- #start ⇒ Object
- #stop ⇒ Object
Constructor Details
#initialize(logger) ⇒ SynchronousRecorder
Returns a new instance of SynchronousRecorder.
9 10 11 |
# File 'lib/scout_apm/synchronous_recorder.rb', line 9 def initialize(logger) @logger = logger end |
Instance Attribute Details
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
7 8 9 |
# File 'lib/scout_apm/synchronous_recorder.rb', line 7 def logger @logger end |
Instance Method Details
#record!(request) ⇒ Object
22 23 24 |
# File 'lib/scout_apm/synchronous_recorder.rb', line 22 def record!(request) request.record! end |
#start ⇒ Object
13 14 15 16 |
# File 'lib/scout_apm/synchronous_recorder.rb', line 13 def start # nothing to do self end |
#stop ⇒ Object
18 19 20 |
# File 'lib/scout_apm/synchronous_recorder.rb', line 18 def stop # nothing to do end |