statsd-instrument 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/statsd/instrument.rb +1 -1
- data/statsd-instrument.gemspec +1 -1
- metadata +2 -2
data/lib/statsd/instrument.rb
CHANGED
@@ -129,7 +129,7 @@ module StatsD
|
|
129
129
|
|
130
130
|
def self.write(k,v,op, sample_rate = default_sample_rate)
|
131
131
|
return unless enabled
|
132
|
-
return if sample_rate < 1 && rand
|
132
|
+
return if sample_rate < 1 && rand > sample_rate
|
133
133
|
|
134
134
|
command = "#{self.prefix + '.' if self.prefix}#{k}:#{v}"
|
135
135
|
case op
|
data/statsd-instrument.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: statsd-instrument
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-09-
|
13
|
+
date: 2012-09-19 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: mocha
|