class ScoutApm::ErrorService::PeriodicWork

Attributes

context[R]

Public Class Methods

new(context) click to toggle source
# File lib/scout_apm/error_service/periodic_work.rb, line 6
def initialize(context)
  @context = context
  @notifier = ScoutApm::ErrorService::Notifier.new(context)
end

Public Instance Methods

run() click to toggle source

Expected to be called many times over the life of the agent

# File lib/scout_apm/error_service/periodic_work.rb, line 12
def run
  @notifier.ship
end