lib/instrumental/agent.rb in instrumental_agent-0.9.11 vs lib/instrumental/agent.rb in instrumental_agent-0.10.0

- old
+ new

@@ -86,18 +86,16 @@ # defaults # host: instrumentalapp.com # port: 8000 # enabled: true - # test_mode: false # synchronous: false @api_key = api_key @host, @port = options[:collector].to_s.split(':') @host ||= 'instrumentalapp.com' @port = (@port || 8000).to_i @enabled = options.has_key?(:enabled) ? !!options[:enabled] : true - @test_mode = !!options[:test_mode] @synchronous = !!options[:synchronous] @pid = Process.pid @allow_reconnect = true setup_cleanup_at_exit if @enabled @@ -358,10 +356,10 @@ command_and_args = nil command_options = nil logger.info "connecting to collector" @socket = with_timeout(CONNECT_TIMEOUT) { TCPSocket.new(host, port) } logger.info "connected to collector at #{host}:#{port}" - send_with_reply_timeout "hello version #{Instrumental::VERSION} test_mode #{@test_mode}" + send_with_reply_timeout "hello version #{Instrumental::VERSION} hostname #{Socket.gethostname}" send_with_reply_timeout "authenticate #{@api_key}" @failures = 0 loop do command_and_args, command_options = @queue.pop sync_resource = command_options && command_options[:sync_resource]