Class: ScoutApm::SynchronousRecorder
- Inherits:
-
Object
- Object
- ScoutApm::SynchronousRecorder
- Defined in:
- lib/scout_apm/synchronous_recorder.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
-
#initialize(context) ⇒ SynchronousRecorder
constructor
A new instance of SynchronousRecorder.
- #logger ⇒ Object
- #record!(request) ⇒ Object
- #start ⇒ Object
- #stop ⇒ Object
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
#context ⇒ Object (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
#logger ⇒ Object
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 |
#start ⇒ Object
17 18 19 20 |
# File 'lib/scout_apm/synchronous_recorder.rb', line 17 def start # nothing to do self end |
#stop ⇒ Object
22 23 24 |
# File 'lib/scout_apm/synchronous_recorder.rb', line 22 def stop # nothing to do end |