statsd-instrument 2.9.2 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +16 -23
- data/.rubocop.yml +3 -13
- data/CHANGELOG.md +33 -0
- data/Gemfile +8 -0
- data/README.md +3 -3
- data/Rakefile +1 -1
- data/benchmark/send-metrics-to-dev-null-log +5 -2
- data/benchmark/send-metrics-to-local-udp-receiver +8 -6
- data/bin/rake +29 -0
- data/bin/rubocop +29 -0
- data/lib/statsd/instrument.rb +80 -144
- data/lib/statsd/instrument/assertions.rb +200 -208
- data/lib/statsd/instrument/capture_sink.rb +23 -19
- data/lib/statsd/instrument/client.rb +414 -320
- data/lib/statsd/instrument/datagram.rb +69 -65
- data/lib/statsd/instrument/datagram_builder.rb +81 -77
- data/lib/statsd/instrument/dogstatsd_datagram.rb +76 -72
- data/lib/statsd/instrument/dogstatsd_datagram_builder.rb +68 -64
- data/lib/statsd/instrument/environment.rb +79 -98
- data/lib/statsd/instrument/expectation.rb +96 -96
- data/lib/statsd/instrument/helpers.rb +10 -35
- data/lib/statsd/instrument/log_sink.rb +20 -16
- data/lib/statsd/instrument/matchers.rb +86 -71
- data/lib/statsd/instrument/null_sink.rb +12 -8
- data/lib/statsd/instrument/railtie.rb +11 -11
- data/lib/statsd/instrument/statsd_datagram_builder.rb +12 -8
- data/lib/statsd/instrument/strict.rb +12 -123
- data/lib/statsd/instrument/udp_sink.rb +50 -46
- data/lib/statsd/instrument/version.rb +1 -1
- data/statsd-instrument.gemspec +2 -8
- data/test/assertions_test.rb +46 -12
- data/test/capture_sink_test.rb +8 -8
- data/test/client_test.rb +62 -51
- data/test/datagram_builder_test.rb +29 -29
- data/test/datagram_test.rb +1 -1
- data/test/dogstatsd_datagram_builder_test.rb +28 -28
- data/test/environment_test.rb +10 -46
- data/test/helpers/rubocop_helper.rb +11 -8
- data/test/helpers_test.rb +5 -5
- data/test/integration_test.rb +10 -25
- data/test/log_sink_test.rb +2 -2
- data/test/matchers_test.rb +36 -36
- data/test/null_sink_test.rb +2 -2
- data/test/rubocop/metric_return_value_test.rb +3 -3
- data/test/rubocop/metric_value_keyword_argument_test.rb +1 -1
- data/test/rubocop/positional_arguments_test.rb +10 -10
- data/test/statsd_instrumentation_test.rb +97 -122
- data/test/statsd_test.rb +50 -75
- data/test/test_helper.rb +7 -5
- data/test/udp_sink_test.rb +8 -8
- metadata +7 -125
- data/.rubocop-https---shopify-github-io-ruby-style-guide-rubocop-yml +0 -1027
- data/benchmark/datagram-client +0 -40
- data/lib/statsd/instrument/backend.rb +0 -18
- data/lib/statsd/instrument/backends/capture_backend.rb +0 -32
- data/lib/statsd/instrument/backends/logger_backend.rb +0 -20
- data/lib/statsd/instrument/backends/null_backend.rb +0 -9
- data/lib/statsd/instrument/backends/udp_backend.rb +0 -152
- data/lib/statsd/instrument/legacy_client.rb +0 -301
- data/lib/statsd/instrument/metric.rb +0 -155
- data/test/assertions_on_legacy_client_test.rb +0 -344
- data/test/capture_backend_test.rb +0 -26
- data/test/compatibility/dogstatsd_datagram_compatibility_test.rb +0 -161
- data/test/deprecations_test.rb +0 -139
- data/test/logger_backend_test.rb +0 -22
- data/test/metric_test.rb +0 -47
- data/test/udp_backend_test.rb +0 -228
data/test/statsd_test.rb
CHANGED
@@ -5,29 +5,16 @@ require 'test_helper'
|
|
5
5
|
class StatsDTest < Minitest::Test
|
6
6
|
include StatsD::Instrument::Assertions
|
7
7
|
|
8
|
-
def teardown
|
9
|
-
StatsD.default_tags = nil
|
10
|
-
end
|
11
|
-
|
12
|
-
def test_statsd_passed_collections_to_backend
|
13
|
-
StatsD.backend.expects(:collect_metric).with(instance_of(StatsD::Instrument::Metric))
|
14
|
-
StatsD.increment('test')
|
15
|
-
end
|
16
|
-
|
17
8
|
def test_statsd_measure_with_explicit_value
|
18
9
|
metric = capture_statsd_call { StatsD.measure('values.foobar', 42) }
|
19
|
-
assert_equal
|
20
|
-
assert_equal
|
21
|
-
assert_equal
|
22
|
-
end
|
23
|
-
|
24
|
-
def test_statsd_measure_without_value_or_block
|
25
|
-
assert_raises(ArgumentError) { StatsD.measure('values.foobar', tags: 123) }
|
10
|
+
assert_equal('values.foobar', metric.name)
|
11
|
+
assert_equal(42, metric.value)
|
12
|
+
assert_equal(:ms, metric.type)
|
26
13
|
end
|
27
14
|
|
28
15
|
def test_statsd_measure_with_explicit_value_and_sample_rate
|
29
16
|
metric = capture_statsd_call { StatsD.measure('values.foobar', 42, sample_rate: 0.1) }
|
30
|
-
assert_equal
|
17
|
+
assert_equal(0.1, metric.sample_rate)
|
31
18
|
end
|
32
19
|
|
33
20
|
def test_statsd_measure_with_benchmarked_block_duration
|
@@ -35,12 +22,12 @@ class StatsDTest < Minitest::Test
|
|
35
22
|
metric = capture_statsd_call do
|
36
23
|
StatsD.measure('values.foobar') { 'foo' }
|
37
24
|
end
|
38
|
-
assert_equal
|
25
|
+
assert_equal(1120.0, metric.value)
|
39
26
|
end
|
40
27
|
|
41
28
|
def test_statsd_measure_returns_return_value_of_block
|
42
29
|
return_value = StatsD.measure('values.foobar') { 'sarah' }
|
43
|
-
assert_equal
|
30
|
+
assert_equal('sarah', return_value)
|
44
31
|
end
|
45
32
|
|
46
33
|
def test_statsd_measure_with_return_in_block_still_captures
|
@@ -54,8 +41,8 @@ class StatsDTest < Minitest::Test
|
|
54
41
|
result = lambda.call
|
55
42
|
end
|
56
43
|
|
57
|
-
assert_equal
|
58
|
-
assert_equal
|
44
|
+
assert_equal('from lambda', result)
|
45
|
+
assert_equal(1120.0, metric.value)
|
59
46
|
end
|
60
47
|
|
61
48
|
def test_statsd_measure_with_exception_in_block_still_captures
|
@@ -68,68 +55,69 @@ class StatsDTest < Minitest::Test
|
|
68
55
|
|
69
56
|
begin
|
70
57
|
result = lambda.call
|
71
|
-
rescue
|
58
|
+
rescue
|
59
|
+
# noop
|
72
60
|
end
|
73
61
|
end
|
74
62
|
|
75
|
-
assert_nil
|
76
|
-
assert_equal
|
63
|
+
assert_nil(result)
|
64
|
+
assert_equal(1120.0, metric.value)
|
77
65
|
end
|
78
66
|
|
79
67
|
def test_statsd_increment
|
80
68
|
metric = capture_statsd_call { StatsD.increment('values.foobar', 3) }
|
81
|
-
assert_equal
|
82
|
-
assert_equal
|
83
|
-
assert_equal
|
69
|
+
assert_equal(:c, metric.type)
|
70
|
+
assert_equal('values.foobar', metric.name)
|
71
|
+
assert_equal(3, metric.value)
|
84
72
|
end
|
85
73
|
|
86
74
|
def test_statsd_increment_with_hash_argument
|
87
75
|
metric = capture_statsd_call { StatsD.increment('values.foobar', tags: ['test']) }
|
88
|
-
assert_equal
|
89
|
-
assert_equal
|
90
|
-
assert_equal
|
76
|
+
assert_equal(StatsD.singleton_client.default_sample_rate, metric.sample_rate)
|
77
|
+
assert_equal(['test'], metric.tags)
|
78
|
+
assert_equal(1, metric.value)
|
91
79
|
end
|
92
80
|
|
93
81
|
def test_statsd_gauge
|
94
82
|
metric = capture_statsd_call { StatsD.gauge('values.foobar', 12) }
|
95
|
-
assert_equal
|
96
|
-
assert_equal
|
97
|
-
assert_equal
|
83
|
+
assert_equal(:g, metric.type)
|
84
|
+
assert_equal('values.foobar', metric.name)
|
85
|
+
assert_equal(12, metric.value)
|
98
86
|
end
|
99
87
|
|
100
88
|
def test_statsd_gauge_without_value
|
101
|
-
assert_raises(ArgumentError) { StatsD.gauge('values.foobar'
|
89
|
+
assert_raises(ArgumentError) { StatsD.gauge('values.foobar') }
|
102
90
|
end
|
103
91
|
|
104
92
|
def test_statsd_set
|
105
93
|
metric = capture_statsd_call { StatsD.set('values.foobar', 'unique_identifier') }
|
106
|
-
assert_equal
|
107
|
-
assert_equal
|
108
|
-
assert_equal
|
94
|
+
assert_equal(:s, metric.type)
|
95
|
+
assert_equal('values.foobar', metric.name)
|
96
|
+
assert_equal('unique_identifier', metric.value)
|
109
97
|
end
|
110
98
|
|
111
99
|
def test_statsd_histogram
|
112
100
|
metric = capture_statsd_call { StatsD.histogram('values.foobar', 42) }
|
113
|
-
assert_equal
|
114
|
-
assert_equal
|
115
|
-
assert_equal
|
101
|
+
assert_equal(:h, metric.type)
|
102
|
+
assert_equal('values.foobar', metric.name)
|
103
|
+
assert_equal(42, metric.value)
|
116
104
|
end
|
117
105
|
|
118
106
|
def test_statsd_distribution
|
119
107
|
metric = capture_statsd_call { StatsD.distribution('values.foobar', 42) }
|
120
|
-
assert_equal
|
121
|
-
assert_equal
|
122
|
-
assert_equal
|
108
|
+
assert_equal(:d, metric.type)
|
109
|
+
assert_equal('values.foobar', metric.name)
|
110
|
+
assert_equal(42, metric.value)
|
123
111
|
end
|
124
112
|
|
125
113
|
def test_statsd_distribution_with_benchmarked_block_duration
|
126
114
|
Process.stubs(:clock_gettime).returns(5.0, 5.0 + 1.12)
|
127
115
|
metric = capture_statsd_call do
|
128
116
|
result = StatsD.distribution('values.foobar') { 'foo' }
|
129
|
-
assert_equal
|
117
|
+
assert_equal('foo', result)
|
130
118
|
end
|
131
|
-
assert_equal
|
132
|
-
assert_equal
|
119
|
+
assert_equal(:d, metric.type)
|
120
|
+
assert_equal(1120.0, metric.value)
|
133
121
|
end
|
134
122
|
|
135
123
|
def test_statsd_distribution_with_return_in_block_still_captures
|
@@ -144,9 +132,9 @@ class StatsDTest < Minitest::Test
|
|
144
132
|
result = lambda.call
|
145
133
|
end
|
146
134
|
|
147
|
-
assert_equal
|
148
|
-
assert_equal
|
149
|
-
assert_equal
|
135
|
+
assert_equal('from lambda', result)
|
136
|
+
assert_equal(:d, metric.type)
|
137
|
+
assert_equal(1120.0, metric.value)
|
150
138
|
end
|
151
139
|
|
152
140
|
def test_statsd_distribution_with_exception_in_block_still_captures
|
@@ -159,13 +147,14 @@ class StatsDTest < Minitest::Test
|
|
159
147
|
|
160
148
|
begin
|
161
149
|
result = lambda.call
|
162
|
-
rescue
|
150
|
+
rescue
|
151
|
+
# noop
|
163
152
|
end
|
164
153
|
end
|
165
154
|
|
166
|
-
assert_nil
|
167
|
-
assert_equal
|
168
|
-
assert_equal
|
155
|
+
assert_nil(result)
|
156
|
+
assert_equal(:d, metric.type)
|
157
|
+
assert_equal(1120.0, metric.value)
|
169
158
|
end
|
170
159
|
|
171
160
|
def test_statsd_distribution_with_block_and_options
|
@@ -173,25 +162,25 @@ class StatsDTest < Minitest::Test
|
|
173
162
|
metric = capture_statsd_call do
|
174
163
|
StatsD.distribution('values.foobar', tags: ['test'], sample_rate: 0.9) { 'foo' }
|
175
164
|
end
|
176
|
-
assert_equal
|
177
|
-
assert_equal
|
178
|
-
assert_equal
|
179
|
-
assert_equal
|
165
|
+
assert_equal(1120.0, metric.value)
|
166
|
+
assert_equal('values.foobar', metric.name)
|
167
|
+
assert_equal(0.9, metric.sample_rate)
|
168
|
+
assert_equal(['test'], metric.tags)
|
180
169
|
end
|
181
170
|
|
182
171
|
def test_statsd_distribution_returns_return_value_of_block
|
183
172
|
return_value = StatsD.distribution('values.foobar') { 'sarah' }
|
184
|
-
assert_equal
|
173
|
+
assert_equal('sarah', return_value)
|
185
174
|
end
|
186
175
|
|
187
176
|
def test_statsd_measure_returns_return_value_of_block_even_if_nil
|
188
177
|
return_value = StatsD.distribution('values.foobar') { nil }
|
189
|
-
assert_nil
|
178
|
+
assert_nil(return_value)
|
190
179
|
end
|
191
180
|
|
192
181
|
def test_statsd_duration_returns_time_in_seconds
|
193
182
|
duration = StatsD::Instrument.duration {}
|
194
|
-
assert_kind_of
|
183
|
+
assert_kind_of(Float, duration)
|
195
184
|
end
|
196
185
|
|
197
186
|
def test_statsd_duration_does_not_swallow_exceptions
|
@@ -200,25 +189,11 @@ class StatsDTest < Minitest::Test
|
|
200
189
|
end
|
201
190
|
end
|
202
191
|
|
203
|
-
def test_statsd_default_tags_get_normalized
|
204
|
-
StatsD.default_tags = { first_tag: 'first_value', second_tag: 'second_value' }
|
205
|
-
assert_equal ['first_tag:first_value', 'second_tag:second_value'], StatsD.default_tags
|
206
|
-
end
|
207
|
-
|
208
|
-
def test_name_prefix
|
209
|
-
StatsD.legacy_singleton_client.stubs(:prefix).returns('prefix')
|
210
|
-
m = capture_statsd_call { StatsD.increment('counter') }
|
211
|
-
assert_equal 'prefix.counter', m.name
|
212
|
-
|
213
|
-
m = capture_statsd_call { StatsD.increment('counter', no_prefix: true) }
|
214
|
-
assert_equal 'counter', m.name
|
215
|
-
end
|
216
|
-
|
217
192
|
protected
|
218
193
|
|
219
194
|
def capture_statsd_call(&block)
|
220
195
|
metrics = capture_statsd_calls(&block)
|
221
|
-
assert_equal
|
196
|
+
assert_equal(1, metrics.length)
|
222
197
|
metrics.first
|
223
198
|
end
|
224
199
|
end
|
data/test/test_helper.rb
CHANGED
@@ -4,15 +4,17 @@ ENV['ENV'] = 'test'
|
|
4
4
|
|
5
5
|
require 'minitest/autorun'
|
6
6
|
require 'minitest/pride'
|
7
|
-
require 'mocha/
|
7
|
+
require 'mocha/minitest'
|
8
8
|
require 'statsd-instrument'
|
9
9
|
|
10
10
|
require_relative 'helpers/rubocop_helper'
|
11
11
|
|
12
|
-
module StatsD
|
13
|
-
|
14
|
-
|
15
|
-
StatsD.
|
12
|
+
module StatsD
|
13
|
+
module Instrument
|
14
|
+
def self.strict_mode_enabled?
|
15
|
+
StatsD::Instrument.const_defined?(:Strict) &&
|
16
|
+
StatsD.singleton_class.ancestors.include?(StatsD::Instrument::Strict)
|
17
|
+
end
|
16
18
|
end
|
17
19
|
end
|
18
20
|
|
data/test/udp_sink_test.rb
CHANGED
@@ -19,19 +19,19 @@ class UDPSinkTest < Minitest::Test
|
|
19
19
|
udp_sink << 'foo:1|c'
|
20
20
|
|
21
21
|
datagram, _source = @receiver.recvfrom(100)
|
22
|
-
assert_equal
|
22
|
+
assert_equal('foo:1|c', datagram)
|
23
23
|
end
|
24
24
|
|
25
25
|
def test_sample?
|
26
26
|
udp_sink = StatsD::Instrument::UDPSink.new(@host, @port)
|
27
|
-
assert
|
28
|
-
refute
|
27
|
+
assert(udp_sink.sample?(1))
|
28
|
+
refute(udp_sink.sample?(0))
|
29
29
|
|
30
30
|
udp_sink.stubs(:rand).returns(0.3)
|
31
|
-
assert
|
31
|
+
assert(udp_sink.sample?(0.5))
|
32
32
|
|
33
33
|
udp_sink.stubs(:rand).returns(0.7)
|
34
|
-
refute
|
34
|
+
refute(udp_sink.sample?(0.5))
|
35
35
|
end
|
36
36
|
|
37
37
|
def test_parallelism
|
@@ -43,7 +43,7 @@ class UDPSinkTest < Minitest::Test
|
|
43
43
|
datagrams << datagram
|
44
44
|
end
|
45
45
|
|
46
|
-
assert_equal
|
46
|
+
assert_equal(100, datagrams.size)
|
47
47
|
end
|
48
48
|
|
49
49
|
def test_socket_error_should_invalidate_socket
|
@@ -74,8 +74,8 @@ class UDPSinkTest < Minitest::Test
|
|
74
74
|
Process.kill('TERM', pid)
|
75
75
|
_, exit_status = Process.waitpid2(pid)
|
76
76
|
|
77
|
-
assert_equal
|
78
|
-
assert_equal
|
77
|
+
assert_equal(0, exit_status, "The forked process did not exit cleanly")
|
78
|
+
assert_equal("exiting:1|c", @receiver.recvfrom_nonblock(100).first)
|
79
79
|
|
80
80
|
rescue NotImplementedError
|
81
81
|
pass("Fork is not implemented on #{RUBY_PLATFORM}")
|
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:
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jesse Storimer
|
@@ -10,106 +10,8 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
14
|
-
dependencies:
|
15
|
-
- !ruby/object:Gem::Dependency
|
16
|
-
name: rake
|
17
|
-
requirement: !ruby/object:Gem::Requirement
|
18
|
-
requirements:
|
19
|
-
- - ">="
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
22
|
-
type: :development
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
requirements:
|
26
|
-
- - ">="
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
version: '0'
|
29
|
-
- !ruby/object:Gem::Dependency
|
30
|
-
name: minitest
|
31
|
-
requirement: !ruby/object:Gem::Requirement
|
32
|
-
requirements:
|
33
|
-
- - ">="
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
version: '0'
|
36
|
-
type: :development
|
37
|
-
prerelease: false
|
38
|
-
version_requirements: !ruby/object:Gem::Requirement
|
39
|
-
requirements:
|
40
|
-
- - ">="
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: '0'
|
43
|
-
- !ruby/object:Gem::Dependency
|
44
|
-
name: rspec
|
45
|
-
requirement: !ruby/object:Gem::Requirement
|
46
|
-
requirements:
|
47
|
-
- - ">="
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '0'
|
50
|
-
type: :development
|
51
|
-
prerelease: false
|
52
|
-
version_requirements: !ruby/object:Gem::Requirement
|
53
|
-
requirements:
|
54
|
-
- - ">="
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
version: '0'
|
57
|
-
- !ruby/object:Gem::Dependency
|
58
|
-
name: mocha
|
59
|
-
requirement: !ruby/object:Gem::Requirement
|
60
|
-
requirements:
|
61
|
-
- - ">="
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
version: '0'
|
64
|
-
type: :development
|
65
|
-
prerelease: false
|
66
|
-
version_requirements: !ruby/object:Gem::Requirement
|
67
|
-
requirements:
|
68
|
-
- - ">="
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version: '0'
|
71
|
-
- !ruby/object:Gem::Dependency
|
72
|
-
name: yard
|
73
|
-
requirement: !ruby/object:Gem::Requirement
|
74
|
-
requirements:
|
75
|
-
- - ">="
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '0'
|
78
|
-
type: :development
|
79
|
-
prerelease: false
|
80
|
-
version_requirements: !ruby/object:Gem::Requirement
|
81
|
-
requirements:
|
82
|
-
- - ">="
|
83
|
-
- !ruby/object:Gem::Version
|
84
|
-
version: '0'
|
85
|
-
- !ruby/object:Gem::Dependency
|
86
|
-
name: rubocop
|
87
|
-
requirement: !ruby/object:Gem::Requirement
|
88
|
-
requirements:
|
89
|
-
- - ">="
|
90
|
-
- !ruby/object:Gem::Version
|
91
|
-
version: '0'
|
92
|
-
type: :development
|
93
|
-
prerelease: false
|
94
|
-
version_requirements: !ruby/object:Gem::Requirement
|
95
|
-
requirements:
|
96
|
-
- - ">="
|
97
|
-
- !ruby/object:Gem::Version
|
98
|
-
version: '0'
|
99
|
-
- !ruby/object:Gem::Dependency
|
100
|
-
name: benchmark-ips
|
101
|
-
requirement: !ruby/object:Gem::Requirement
|
102
|
-
requirements:
|
103
|
-
- - ">="
|
104
|
-
- !ruby/object:Gem::Version
|
105
|
-
version: '0'
|
106
|
-
type: :development
|
107
|
-
prerelease: false
|
108
|
-
version_requirements: !ruby/object:Gem::Requirement
|
109
|
-
requirements:
|
110
|
-
- - ">="
|
111
|
-
- !ruby/object:Gem::Version
|
112
|
-
version: '0'
|
13
|
+
date: 2021-01-20 00:00:00.000000000 Z
|
14
|
+
dependencies: []
|
113
15
|
description: A StatsD client for Ruby apps. Provides metaprogramming methods to inject
|
114
16
|
StatsD instrumentation into your code.
|
115
17
|
email:
|
@@ -123,7 +25,6 @@ files:
|
|
123
25
|
- ".github/workflows/benchmark.yml"
|
124
26
|
- ".github/workflows/ci.yml"
|
125
27
|
- ".gitignore"
|
126
|
-
- ".rubocop-https---shopify-github-io-ruby-style-guide-rubocop-yml"
|
127
28
|
- ".rubocop.yml"
|
128
29
|
- ".yardopts"
|
129
30
|
- CHANGELOG.md
|
@@ -133,17 +34,13 @@ files:
|
|
133
34
|
- README.md
|
134
35
|
- Rakefile
|
135
36
|
- benchmark/README.md
|
136
|
-
- benchmark/datagram-client
|
137
37
|
- benchmark/send-metrics-to-dev-null-log
|
138
38
|
- benchmark/send-metrics-to-local-udp-receiver
|
39
|
+
- bin/rake
|
40
|
+
- bin/rubocop
|
139
41
|
- lib/statsd-instrument.rb
|
140
42
|
- lib/statsd/instrument.rb
|
141
43
|
- lib/statsd/instrument/assertions.rb
|
142
|
-
- lib/statsd/instrument/backend.rb
|
143
|
-
- lib/statsd/instrument/backends/capture_backend.rb
|
144
|
-
- lib/statsd/instrument/backends/logger_backend.rb
|
145
|
-
- lib/statsd/instrument/backends/null_backend.rb
|
146
|
-
- lib/statsd/instrument/backends/udp_backend.rb
|
147
44
|
- lib/statsd/instrument/capture_sink.rb
|
148
45
|
- lib/statsd/instrument/client.rb
|
149
46
|
- lib/statsd/instrument/datagram.rb
|
@@ -153,10 +50,8 @@ files:
|
|
153
50
|
- lib/statsd/instrument/environment.rb
|
154
51
|
- lib/statsd/instrument/expectation.rb
|
155
52
|
- lib/statsd/instrument/helpers.rb
|
156
|
-
- lib/statsd/instrument/legacy_client.rb
|
157
53
|
- lib/statsd/instrument/log_sink.rb
|
158
54
|
- lib/statsd/instrument/matchers.rb
|
159
|
-
- lib/statsd/instrument/metric.rb
|
160
55
|
- lib/statsd/instrument/null_sink.rb
|
161
56
|
- lib/statsd/instrument/railtie.rb
|
162
57
|
- lib/statsd/instrument/rubocop.rb
|
@@ -174,28 +69,22 @@ files:
|
|
174
69
|
- lib/statsd/instrument/version.rb
|
175
70
|
- shipit.rubygems.yml
|
176
71
|
- statsd-instrument.gemspec
|
177
|
-
- test/assertions_on_legacy_client_test.rb
|
178
72
|
- test/assertions_test.rb
|
179
73
|
- test/benchmark/clock_gettime.rb
|
180
74
|
- test/benchmark/default_tags.rb
|
181
75
|
- test/benchmark/metrics.rb
|
182
76
|
- test/benchmark/tags.rb
|
183
|
-
- test/capture_backend_test.rb
|
184
77
|
- test/capture_sink_test.rb
|
185
78
|
- test/client_test.rb
|
186
|
-
- test/compatibility/dogstatsd_datagram_compatibility_test.rb
|
187
79
|
- test/datagram_builder_test.rb
|
188
80
|
- test/datagram_test.rb
|
189
|
-
- test/deprecations_test.rb
|
190
81
|
- test/dogstatsd_datagram_builder_test.rb
|
191
82
|
- test/environment_test.rb
|
192
83
|
- test/helpers/rubocop_helper.rb
|
193
84
|
- test/helpers_test.rb
|
194
85
|
- test/integration_test.rb
|
195
86
|
- test/log_sink_test.rb
|
196
|
-
- test/logger_backend_test.rb
|
197
87
|
- test/matchers_test.rb
|
198
|
-
- test/metric_test.rb
|
199
88
|
- test/null_sink_test.rb
|
200
89
|
- test/rubocop/measure_as_dist_argument_test.rb
|
201
90
|
- test/rubocop/metaprogramming_positional_arguments_test.rb
|
@@ -209,12 +98,12 @@ files:
|
|
209
98
|
- test/statsd_instrumentation_test.rb
|
210
99
|
- test/statsd_test.rb
|
211
100
|
- test/test_helper.rb
|
212
|
-
- test/udp_backend_test.rb
|
213
101
|
- test/udp_sink_test.rb
|
214
102
|
homepage: https://github.com/Shopify/statsd-instrument
|
215
103
|
licenses:
|
216
104
|
- MIT
|
217
|
-
metadata:
|
105
|
+
metadata:
|
106
|
+
allowed_push_host: https://rubygems.org
|
218
107
|
post_install_message:
|
219
108
|
rdoc_options: []
|
220
109
|
require_paths:
|
@@ -235,28 +124,22 @@ signing_key:
|
|
235
124
|
specification_version: 4
|
236
125
|
summary: A StatsD client for Ruby apps
|
237
126
|
test_files:
|
238
|
-
- test/assertions_on_legacy_client_test.rb
|
239
127
|
- test/assertions_test.rb
|
240
128
|
- test/benchmark/clock_gettime.rb
|
241
129
|
- test/benchmark/default_tags.rb
|
242
130
|
- test/benchmark/metrics.rb
|
243
131
|
- test/benchmark/tags.rb
|
244
|
-
- test/capture_backend_test.rb
|
245
132
|
- test/capture_sink_test.rb
|
246
133
|
- test/client_test.rb
|
247
|
-
- test/compatibility/dogstatsd_datagram_compatibility_test.rb
|
248
134
|
- test/datagram_builder_test.rb
|
249
135
|
- test/datagram_test.rb
|
250
|
-
- test/deprecations_test.rb
|
251
136
|
- test/dogstatsd_datagram_builder_test.rb
|
252
137
|
- test/environment_test.rb
|
253
138
|
- test/helpers/rubocop_helper.rb
|
254
139
|
- test/helpers_test.rb
|
255
140
|
- test/integration_test.rb
|
256
141
|
- test/log_sink_test.rb
|
257
|
-
- test/logger_backend_test.rb
|
258
142
|
- test/matchers_test.rb
|
259
|
-
- test/metric_test.rb
|
260
143
|
- test/null_sink_test.rb
|
261
144
|
- test/rubocop/measure_as_dist_argument_test.rb
|
262
145
|
- test/rubocop/metaprogramming_positional_arguments_test.rb
|
@@ -270,5 +153,4 @@ test_files:
|
|
270
153
|
- test/statsd_instrumentation_test.rb
|
271
154
|
- test/statsd_test.rb
|
272
155
|
- test/test_helper.rb
|
273
|
-
- test/udp_backend_test.rb
|
274
156
|
- test/udp_sink_test.rb
|