class Honeybadger::Plugin::CollectorExecution
@api private
Constants
- DEFAULT_COLLECTION_INTERVAL
Public Class Methods
Source
# File lib/honeybadger/plugin.rb, line 136 def initialize(name, config, options, &block) @name = name @config = config @options = options @block = block @interval = config.collection_interval(name) || options.fetch(:interval, DEFAULT_COLLECTION_INTERVAL) @end_time = ::Process.clock_gettime(::Process::CLOCK_MONOTONIC) + @interval end
Public Instance Methods
Source
# File lib/honeybadger/plugin.rb, line 153 def register! Honeybadger.collect(self) end
Source
# File lib/honeybadger/plugin.rb, line 149 def reset @end_time = ::Process.clock_gettime(::Process::CLOCK_MONOTONIC) + @interval end
Source
# File lib/honeybadger/plugin.rb, line 145 def tick @end_time - ::Process.clock_gettime(::Process::CLOCK_MONOTONIC) end