lib/octave/agent.rb
# Start the agent process and begin dispatching events.
Start the agent process and begin dispatching events.
Start the agent process and begin dispatching events .
def start
      unless Octave.config.enabled?
        Octave.logger.warn do
          "Octave agent is disabled. Metrics will not be reported."
        end
        return
      end
      Octave.logger.info { "Starting Octave agent..." }
      @thread = Thread.new(&method(:run))
      @running = true
    end
def start unless Octave . config . enabled? Octave . logger . warn do "Octave agent is disabled. Metrics will not be reported." end return end Octave . logger . info { "Starting Octave agent..." } @thread = Thread . new ( & method ( :run ) ) @running = true end
Start the agent process and begin dispatching events.
Start the agent process and begin dispatching events .