Method: Atatus::Sinatra#start
- Defined in:
- lib/atatus/sinatra.rb
#start(app, config = {}) ⇒ true?
Start the Atatus agent and hook into Sinatra.
29 30 31 32 33 34 35 36 37 38 |
# File 'lib/atatus/sinatra.rb', line 29 def start(app, config = {}) config = Config.new(config) unless config.is_a?(Config) configure_app(app, config) Atatus.start(config) Atatus.running? rescue StandardError => e config.logger.error format('Failed to start: %s', e.) config.logger.debug "Backtrace:\n" + e.backtrace.join("\n") end |