Class: ScoutApm::RecorderFactory
- Inherits:
-
Object
- Object
- ScoutApm::RecorderFactory
- Defined in:
- lib/scout_apm/agent_context.rb
Class Method Summary collapse
Class Method Details
.build(context) ⇒ Object
233 234 235 236 237 238 239 240 241 |
# File 'lib/scout_apm/agent_context.rb', line 233 def self.build(context) if context.config.value("async_recording") context.logger.debug("Using asynchronous recording") ScoutApm::BackgroundRecorder.new(context).start else context.logger.debug("Using synchronous recording") ScoutApm::SynchronousRecorder.new(context).start end end |