Permalink
Browse files

Statsite require a newline in packets

  • Loading branch information...
1 parent ef11078 commit 754a0dc510ab8732d57e73bc54d0cb18ba38896a @titanous titanous committed Jun 16, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/statsd/instrument.rb
View
1 lib/statsd/instrument.rb
@@ -142,6 +142,7 @@ def self.write(k,v,op, sample_rate = default_sample_rate)
end
command << "|@#{sample_rate}" if sample_rate < 1 || (self.implementation == :statsite && sample_rate > 1)
+ command << "\n" if self.implementation == :statsite
if mode.to_s == 'production'
socket_wrapper { socket.send(command, 0, host, port) }

0 comments on commit 754a0dc

Please sign in to comment.