metricsd 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +6 -0
- data/lib/metricsd/client.rb +3 -3
- data/lib/metricsd/version.rb +1 -1
- metadata +3 -3
data/CHANGELOG.md
CHANGED
data/lib/metricsd/client.rb
CHANGED
@@ -203,17 +203,17 @@ module Metricsd
|
|
203
203
|
end
|
204
204
|
|
205
205
|
if msg.size + s.size + (msg.size > 0 ? 1 : 0) > 250
|
206
|
-
|
206
|
+
safe_send_packet(msg)
|
207
207
|
msg = ''
|
208
208
|
end
|
209
209
|
msg << (msg.size > 0 ? ';' : '') << s
|
210
210
|
end
|
211
|
-
|
211
|
+
safe_send_packet(msg) if msg.size > 0
|
212
212
|
end
|
213
213
|
|
214
214
|
# Sends a string to the MetricsD. Should never raise any network-specific
|
215
215
|
# exceptions, but log them instead, and silently return.
|
216
|
-
def
|
216
|
+
def safe_send_packet(msg)
|
217
217
|
collector_socket.send(msg, 0)
|
218
218
|
true
|
219
219
|
rescue Errno::ECONNREFUSED => e
|
data/lib/metricsd/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metricsd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dmytro Shteflyuk
|