statsd-instrument 2.9.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +14 -21
- data/.rubocop-https---shopify-github-io-ruby-style-guide-rubocop-yml +15 -15
- data/CHANGELOG.md +44 -0
- data/benchmark/send-metrics-to-dev-null-log +5 -2
- data/benchmark/send-metrics-to-local-udp-receiver +8 -6
- data/lib/statsd/instrument.rb +79 -146
- data/lib/statsd/instrument/assertions.rb +12 -24
- data/lib/statsd/instrument/client.rb +125 -35
- data/lib/statsd/instrument/environment.rb +1 -23
- data/lib/statsd/instrument/expectation.rb +12 -16
- data/lib/statsd/instrument/helpers.rb +1 -30
- data/lib/statsd/instrument/matchers.rb +0 -1
- data/lib/statsd/instrument/railtie.rb +0 -4
- data/lib/statsd/instrument/strict.rb +12 -123
- data/lib/statsd/instrument/version.rb +1 -1
- data/test/assertions_test.rb +21 -9
- data/test/client_test.rb +11 -0
- data/test/environment_test.rb +1 -37
- data/test/integration_test.rb +9 -24
- data/test/statsd_instrumentation_test.rb +25 -50
- data/test/statsd_test.rb +6 -31
- data/test/test_helper.rb +1 -1
- metadata +2 -24
- 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/assertions_test.rb
CHANGED
@@ -132,43 +132,55 @@ class AssertionsTest < Minitest::Test
|
|
132
132
|
end
|
133
133
|
|
134
134
|
def test_assert_statsd_gauge_call_with_numeric_value
|
135
|
-
@test_case.assert_statsd_gauge('gauge',
|
135
|
+
@test_case.assert_statsd_gauge('gauge', 42) do
|
136
136
|
StatsD.gauge('gauge', 42)
|
137
137
|
end
|
138
138
|
|
139
|
-
@test_case.assert_statsd_gauge('gauge',
|
139
|
+
@test_case.assert_statsd_gauge('gauge', '42') do
|
140
140
|
StatsD.gauge('gauge', 42)
|
141
141
|
end
|
142
142
|
|
143
143
|
assert_raises(Minitest::Assertion) do
|
144
|
-
@test_case.assert_statsd_gauge('gauge',
|
144
|
+
@test_case.assert_statsd_gauge('gauge', 42) do
|
145
145
|
StatsD.gauge('gauge', 45)
|
146
146
|
end
|
147
147
|
end
|
148
|
+
|
149
|
+
@test_case.assert_statsd_gauge('gauge', value: 42) do
|
150
|
+
StatsD.gauge('gauge', 42)
|
151
|
+
end
|
148
152
|
end
|
149
153
|
|
150
154
|
def test_assert_statsd_set_call_with_string_value
|
151
|
-
@test_case.assert_statsd_set('set',
|
155
|
+
@test_case.assert_statsd_set('set', 12345) do
|
152
156
|
StatsD.set('set', '12345')
|
153
157
|
end
|
154
158
|
|
155
|
-
@test_case.assert_statsd_set('set',
|
159
|
+
@test_case.assert_statsd_set('set', '12345') do
|
156
160
|
StatsD.set('set', '12345')
|
157
161
|
end
|
158
162
|
|
159
|
-
@test_case.assert_statsd_set('set',
|
163
|
+
@test_case.assert_statsd_set('set', 12345) do
|
160
164
|
StatsD.set('set', 12345)
|
161
165
|
end
|
162
166
|
|
163
|
-
@test_case.assert_statsd_set('set',
|
167
|
+
@test_case.assert_statsd_set('set', '12345') do
|
164
168
|
StatsD.set('set', 12345)
|
165
169
|
end
|
166
170
|
|
167
171
|
assert_raises(Minitest::Assertion) do
|
168
|
-
@test_case.assert_statsd_set('set',
|
172
|
+
@test_case.assert_statsd_set('set', '42') do
|
169
173
|
StatsD.set('set', 45)
|
170
174
|
end
|
171
175
|
end
|
176
|
+
|
177
|
+
@test_case.assert_statsd_set('set', value: 12345) do
|
178
|
+
StatsD.set('set', '12345')
|
179
|
+
end
|
180
|
+
|
181
|
+
@test_case.assert_statsd_set('set', 'wrong_value', value: 12345) do
|
182
|
+
StatsD.set('set', '12345')
|
183
|
+
end
|
172
184
|
end
|
173
185
|
|
174
186
|
def test_tags_will_match_subsets
|
@@ -285,7 +297,7 @@ class AssertionsTest < Minitest::Test
|
|
285
297
|
end
|
286
298
|
|
287
299
|
foo_1_metric = StatsD::Instrument::Expectation.increment('counter', times: 2, tags: ['foo:1'])
|
288
|
-
foo_2_metric = StatsD::Instrument::Expectation.increment('counter', tags: ['foo:2'])
|
300
|
+
foo_2_metric = StatsD::Instrument::Expectation.increment('counter', 1, tags: ['foo:2'])
|
289
301
|
@test_case.assert_statsd_expectations([foo_1_metric, foo_2_metric]) do
|
290
302
|
StatsD.increment('counter', tags: { foo: 1 })
|
291
303
|
StatsD.increment('counter', tags: { foo: 1 })
|
data/test/client_test.rb
CHANGED
@@ -186,6 +186,17 @@ class ClientTest < Minitest::Test
|
|
186
186
|
assert_equal "bar", datagrams[1].name
|
187
187
|
end
|
188
188
|
|
189
|
+
def test_default_tags_normalization
|
190
|
+
client = StatsD::Instrument::Client.new(default_tags: { first_tag: 'f|irst_value', second_tag: 'sec,ond_value' })
|
191
|
+
datagrams = client.capture do
|
192
|
+
client.increment('bar', tags: ['th|ird_#,tag'])
|
193
|
+
end
|
194
|
+
|
195
|
+
assert_includes datagrams.first.tags, 'first_tag:first_value'
|
196
|
+
assert_includes datagrams.first.tags, 'second_tag:second_value'
|
197
|
+
assert_includes datagrams.first.tags, 'third_#tag'
|
198
|
+
end
|
199
|
+
|
189
200
|
def test_sampling
|
190
201
|
mock_sink = mock('sink')
|
191
202
|
mock_sink.stubs(:sample?).returns(false, true, false, false, true)
|
data/test/environment_test.rb
CHANGED
@@ -5,37 +5,6 @@ require 'test_helper'
|
|
5
5
|
module Rails; end
|
6
6
|
|
7
7
|
class EnvironmentTest < Minitest::Test
|
8
|
-
def setup
|
9
|
-
ENV['STATSD_ADDR'] = nil
|
10
|
-
ENV['IMPLEMENTATION'] = nil
|
11
|
-
end
|
12
|
-
|
13
|
-
def test_default_backend_uses_logger_in_development_environment
|
14
|
-
StatsD::Instrument::Environment.stubs(:environment).returns('development')
|
15
|
-
assert_instance_of StatsD::Instrument::Backends::LoggerBackend, StatsD::Instrument::Environment.default_backend
|
16
|
-
end
|
17
|
-
|
18
|
-
def test_default_backend_uses_null_backend_in_test_environment
|
19
|
-
StatsD::Instrument::Environment.stubs(:environment).returns('test')
|
20
|
-
assert_instance_of StatsD::Instrument::Backends::NullBackend, StatsD::Instrument::Environment.default_backend
|
21
|
-
end
|
22
|
-
|
23
|
-
def test_default_backend_uses_udp_backend_in_production_environment
|
24
|
-
StatsD::Instrument::Environment.stubs(:environment).returns('production')
|
25
|
-
assert_instance_of StatsD::Instrument::Backends::UDPBackend, StatsD::Instrument::Environment.default_backend
|
26
|
-
end
|
27
|
-
|
28
|
-
def test_default_backend_uses_environment_variables_in_production_environment
|
29
|
-
StatsD::Instrument::Environment.stubs(:environment).returns('production')
|
30
|
-
ENV['STATSD_ADDR'] = '127.0.0.1:1234'
|
31
|
-
ENV['STATSD_IMPLEMENTATION'] = 'datadog'
|
32
|
-
|
33
|
-
backend = StatsD::Instrument::Environment.default_backend
|
34
|
-
assert_equal '127.0.0.1', backend.host
|
35
|
-
assert_equal 1234, backend.port
|
36
|
-
assert_equal :datadog, backend.implementation
|
37
|
-
end
|
38
|
-
|
39
8
|
def test_environment_prefers_statsd_env_if_available
|
40
9
|
env = StatsD::Instrument::Environment.new(
|
41
10
|
'STATSD_ENV' => 'set_from_STATSD_ENV',
|
@@ -62,13 +31,8 @@ class EnvironmentTest < Minitest::Test
|
|
62
31
|
assert_equal 'development', env.environment
|
63
32
|
end
|
64
33
|
|
65
|
-
def
|
34
|
+
def test_client_returns_client_instance
|
66
35
|
env = StatsD::Instrument::Environment.new({})
|
67
|
-
assert_kind_of StatsD::Instrument::LegacyClient, env.client
|
68
|
-
end
|
69
|
-
|
70
|
-
def test_client_returns_new_client_if_environment_asks_for_it
|
71
|
-
env = StatsD::Instrument::Environment.new('STATSD_USE_NEW_CLIENT' => '1')
|
72
36
|
assert_kind_of StatsD::Instrument::Client, env.client
|
73
37
|
end
|
74
38
|
|
data/test/integration_test.rb
CHANGED
@@ -6,39 +6,24 @@ class IntegrationTest < Minitest::Test
|
|
6
6
|
def setup
|
7
7
|
@server = UDPSocket.new
|
8
8
|
@server.bind('localhost', 0)
|
9
|
-
port = @server.addr[1]
|
10
9
|
|
11
|
-
@
|
12
|
-
|
10
|
+
@env = StatsD::Instrument::Environment.new(
|
11
|
+
'STATSD_ADDR' => "#{@server.addr[2]}:#{@server.addr[1]}",
|
12
|
+
'STATSD_IMPLEMENTATION' => 'dogstatsd',
|
13
|
+
'STATSD_ENV' => 'production',
|
14
|
+
)
|
15
|
+
|
16
|
+
@old_client = StatsD.singleton_client
|
17
|
+
StatsD.singleton_client = @env.client
|
13
18
|
end
|
14
19
|
|
15
20
|
def teardown
|
21
|
+
StatsD.singleton_client = @old_client
|
16
22
|
@server.close
|
17
|
-
StatsD.backend = @old_backend
|
18
23
|
end
|
19
24
|
|
20
25
|
def test_live_local_udp_socket
|
21
26
|
StatsD.increment('counter')
|
22
27
|
assert_equal "counter:1|c", @server.recvfrom(100).first
|
23
28
|
end
|
24
|
-
|
25
|
-
def test_synchronize_in_exit_handler_handles_thread_error_and_exits_cleanly
|
26
|
-
pid = fork do
|
27
|
-
Signal.trap('TERM') do
|
28
|
-
StatsD.increment('exiting')
|
29
|
-
Process.exit!(0)
|
30
|
-
end
|
31
|
-
|
32
|
-
sleep 100
|
33
|
-
end
|
34
|
-
|
35
|
-
Process.kill('TERM', pid)
|
36
|
-
_, exit_status = Process.waitpid2(pid)
|
37
|
-
|
38
|
-
assert_equal 0, exit_status, "The forked process did not exit cleanly"
|
39
|
-
assert_equal "exiting:1|c", @server.recvfrom_nonblock(100).first
|
40
|
-
|
41
|
-
rescue NotImplementedError
|
42
|
-
pass("Fork is not implemented on #{RUBY_PLATFORM}")
|
43
|
-
end
|
44
29
|
end
|
@@ -326,30 +326,42 @@ class StatsDInstrumentationTest < Minitest::Test
|
|
326
326
|
end
|
327
327
|
|
328
328
|
def test_statsd_respects_global_prefix_changes
|
329
|
-
|
329
|
+
old_client = StatsD.singleton_client
|
330
|
+
|
331
|
+
StatsD.singleton_client = StatsD::Instrument::Client.new(prefix: 'Foo')
|
330
332
|
ActiveMerchant::Gateway.singleton_class.extend StatsD::Instrument
|
331
333
|
ActiveMerchant::Gateway.singleton_class.statsd_count :sync, 'ActiveMerchant.Gateway.sync'
|
332
|
-
StatsD.
|
334
|
+
StatsD.singleton_client = StatsD::Instrument::Client.new(prefix: 'Quc')
|
333
335
|
|
334
|
-
|
335
|
-
assert_equal 1,
|
336
|
-
assert_equal "Quc.ActiveMerchant.Gateway.sync",
|
336
|
+
datagrams = capture_statsd_calls { ActiveMerchant::Gateway.sync }
|
337
|
+
assert_equal 1, datagrams.length
|
338
|
+
assert_equal "Quc.ActiveMerchant.Gateway.sync", datagrams.first.name
|
337
339
|
ensure
|
338
|
-
StatsD.
|
340
|
+
StatsD.singleton_client = old_client
|
339
341
|
ActiveMerchant::Gateway.singleton_class.statsd_remove_count :sync, 'ActiveMerchant.Gateway.sync'
|
340
342
|
end
|
341
343
|
|
344
|
+
def test_statsd_count_with_injected_client
|
345
|
+
client = StatsD::Instrument::Client.new(prefix: 'prefix')
|
346
|
+
|
347
|
+
ActiveMerchant::Gateway.statsd_count(:ssl_post, 'ActiveMerchant.Gateway.ssl_post', client: client)
|
348
|
+
assert_statsd_increment('prefix.ActiveMerchant.Gateway.ssl_post', client: client) do
|
349
|
+
ActiveMerchant::Gateway.new.purchase(true)
|
350
|
+
end
|
351
|
+
ensure
|
352
|
+
ActiveMerchant::Gateway.statsd_remove_count :ssl_post, 'ActiveMerchant.Gateway.ssl_post'
|
353
|
+
end
|
354
|
+
|
342
355
|
def test_statsd_macro_can_disable_prefix
|
343
|
-
StatsD.prefix
|
356
|
+
client = StatsD::Instrument::Client.new(prefix: 'foo')
|
344
357
|
ActiveMerchant::Gateway.singleton_class.extend StatsD::Instrument
|
345
|
-
ActiveMerchant::Gateway.singleton_class.statsd_count_success
|
346
|
-
|
358
|
+
ActiveMerchant::Gateway.singleton_class.statsd_count_success(:sync,
|
359
|
+
'ActiveMerchant.Gateway.sync', no_prefix: true, client: client)
|
347
360
|
|
348
|
-
|
349
|
-
assert_equal 1,
|
350
|
-
assert_equal "ActiveMerchant.Gateway.sync.success",
|
361
|
+
datagrams = client.capture { ActiveMerchant::Gateway.sync }
|
362
|
+
assert_equal 1, datagrams.length
|
363
|
+
assert_equal "ActiveMerchant.Gateway.sync.success", datagrams.first.name
|
351
364
|
ensure
|
352
|
-
StatsD.prefix = nil
|
353
365
|
ActiveMerchant::Gateway.singleton_class.statsd_remove_count_success :sync, 'ActiveMerchant.Gateway.sync'
|
354
366
|
end
|
355
367
|
|
@@ -417,43 +429,6 @@ class StatsDInstrumentationTest < Minitest::Test
|
|
417
429
|
end
|
418
430
|
end
|
419
431
|
|
420
|
-
def test_statsd_measure_with_new_client
|
421
|
-
old_client = StatsD.singleton_client
|
422
|
-
StatsD.singleton_client = StatsD::Instrument::Client.new
|
423
|
-
|
424
|
-
ActiveMerchant::UniqueGateway.statsd_measure :ssl_post, 'ActiveMerchant.Gateway.ssl_post', sample_rate: 0.3
|
425
|
-
assert_statsd_measure('ActiveMerchant.Gateway.ssl_post', sample_rate: 0.3) do
|
426
|
-
ActiveMerchant::UniqueGateway.new.purchase(true)
|
427
|
-
end
|
428
|
-
ensure
|
429
|
-
ActiveMerchant::UniqueGateway.statsd_remove_measure :ssl_post, 'ActiveMerchant.Gateway.ssl_post'
|
430
|
-
StatsD.singleton_client = old_client
|
431
|
-
end
|
432
|
-
|
433
|
-
def test_statsd_count_with_new_client
|
434
|
-
old_client = StatsD.singleton_client
|
435
|
-
StatsD.singleton_client = StatsD::Instrument::Client.new
|
436
|
-
|
437
|
-
ActiveMerchant::Gateway.statsd_count :ssl_post, 'ActiveMerchant.Gateway.ssl_post'
|
438
|
-
assert_statsd_increment('ActiveMerchant.Gateway.ssl_post') do
|
439
|
-
ActiveMerchant::Gateway.new.purchase(true)
|
440
|
-
end
|
441
|
-
ensure
|
442
|
-
ActiveMerchant::Gateway.statsd_remove_count :ssl_post, 'ActiveMerchant.Gateway.ssl_post'
|
443
|
-
StatsD.singleton_client = old_client
|
444
|
-
end
|
445
|
-
|
446
|
-
def test_statsd_count_with_injected_client
|
447
|
-
client = StatsD::Instrument::Client.new(prefix: 'prefix')
|
448
|
-
|
449
|
-
ActiveMerchant::Gateway.statsd_count(:ssl_post, 'ActiveMerchant.Gateway.ssl_post', client: client)
|
450
|
-
assert_statsd_increment('prefix.ActiveMerchant.Gateway.ssl_post', client: client) do
|
451
|
-
ActiveMerchant::Gateway.new.purchase(true)
|
452
|
-
end
|
453
|
-
ensure
|
454
|
-
ActiveMerchant::Gateway.statsd_remove_count :ssl_post, 'ActiveMerchant.Gateway.ssl_post'
|
455
|
-
end
|
456
|
-
|
457
432
|
private
|
458
433
|
|
459
434
|
def assert_scope(klass, method, expected_scope)
|
data/test/statsd_test.rb
CHANGED
@@ -5,15 +5,6 @@ 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
10
|
assert_equal 'values.foobar', metric.name
|
@@ -21,10 +12,6 @@ class StatsDTest < Minitest::Test
|
|
21
12
|
assert_equal :ms, metric.type
|
22
13
|
end
|
23
14
|
|
24
|
-
def test_statsd_measure_without_value_or_block
|
25
|
-
assert_raises(ArgumentError) { StatsD.measure('values.foobar', tags: 123) }
|
26
|
-
end
|
27
|
-
|
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
17
|
assert_equal 0.1, metric.sample_rate
|
@@ -68,7 +55,8 @@ 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
|
|
@@ -85,7 +73,7 @@ class StatsDTest < Minitest::Test
|
|
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 StatsD.default_sample_rate, metric.sample_rate
|
76
|
+
assert_equal StatsD.singleton_client.default_sample_rate, metric.sample_rate
|
89
77
|
assert_equal ['test'], metric.tags
|
90
78
|
assert_equal 1, metric.value
|
91
79
|
end
|
@@ -98,7 +86,7 @@ class StatsDTest < Minitest::Test
|
|
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
|
@@ -159,7 +147,8 @@ 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
|
|
@@ -200,20 +189,6 @@ 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)
|
data/test/test_helper.rb
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:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jesse Storimer
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2020-01-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
@@ -133,17 +133,11 @@ files:
|
|
133
133
|
- README.md
|
134
134
|
- Rakefile
|
135
135
|
- benchmark/README.md
|
136
|
-
- benchmark/datagram-client
|
137
136
|
- benchmark/send-metrics-to-dev-null-log
|
138
137
|
- benchmark/send-metrics-to-local-udp-receiver
|
139
138
|
- lib/statsd-instrument.rb
|
140
139
|
- lib/statsd/instrument.rb
|
141
140
|
- 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
141
|
- lib/statsd/instrument/capture_sink.rb
|
148
142
|
- lib/statsd/instrument/client.rb
|
149
143
|
- lib/statsd/instrument/datagram.rb
|
@@ -153,10 +147,8 @@ files:
|
|
153
147
|
- lib/statsd/instrument/environment.rb
|
154
148
|
- lib/statsd/instrument/expectation.rb
|
155
149
|
- lib/statsd/instrument/helpers.rb
|
156
|
-
- lib/statsd/instrument/legacy_client.rb
|
157
150
|
- lib/statsd/instrument/log_sink.rb
|
158
151
|
- lib/statsd/instrument/matchers.rb
|
159
|
-
- lib/statsd/instrument/metric.rb
|
160
152
|
- lib/statsd/instrument/null_sink.rb
|
161
153
|
- lib/statsd/instrument/railtie.rb
|
162
154
|
- lib/statsd/instrument/rubocop.rb
|
@@ -174,28 +166,22 @@ files:
|
|
174
166
|
- lib/statsd/instrument/version.rb
|
175
167
|
- shipit.rubygems.yml
|
176
168
|
- statsd-instrument.gemspec
|
177
|
-
- test/assertions_on_legacy_client_test.rb
|
178
169
|
- test/assertions_test.rb
|
179
170
|
- test/benchmark/clock_gettime.rb
|
180
171
|
- test/benchmark/default_tags.rb
|
181
172
|
- test/benchmark/metrics.rb
|
182
173
|
- test/benchmark/tags.rb
|
183
|
-
- test/capture_backend_test.rb
|
184
174
|
- test/capture_sink_test.rb
|
185
175
|
- test/client_test.rb
|
186
|
-
- test/compatibility/dogstatsd_datagram_compatibility_test.rb
|
187
176
|
- test/datagram_builder_test.rb
|
188
177
|
- test/datagram_test.rb
|
189
|
-
- test/deprecations_test.rb
|
190
178
|
- test/dogstatsd_datagram_builder_test.rb
|
191
179
|
- test/environment_test.rb
|
192
180
|
- test/helpers/rubocop_helper.rb
|
193
181
|
- test/helpers_test.rb
|
194
182
|
- test/integration_test.rb
|
195
183
|
- test/log_sink_test.rb
|
196
|
-
- test/logger_backend_test.rb
|
197
184
|
- test/matchers_test.rb
|
198
|
-
- test/metric_test.rb
|
199
185
|
- test/null_sink_test.rb
|
200
186
|
- test/rubocop/measure_as_dist_argument_test.rb
|
201
187
|
- test/rubocop/metaprogramming_positional_arguments_test.rb
|
@@ -209,7 +195,6 @@ files:
|
|
209
195
|
- test/statsd_instrumentation_test.rb
|
210
196
|
- test/statsd_test.rb
|
211
197
|
- test/test_helper.rb
|
212
|
-
- test/udp_backend_test.rb
|
213
198
|
- test/udp_sink_test.rb
|
214
199
|
homepage: https://github.com/Shopify/statsd-instrument
|
215
200
|
licenses:
|
@@ -235,28 +220,22 @@ signing_key:
|
|
235
220
|
specification_version: 4
|
236
221
|
summary: A StatsD client for Ruby apps
|
237
222
|
test_files:
|
238
|
-
- test/assertions_on_legacy_client_test.rb
|
239
223
|
- test/assertions_test.rb
|
240
224
|
- test/benchmark/clock_gettime.rb
|
241
225
|
- test/benchmark/default_tags.rb
|
242
226
|
- test/benchmark/metrics.rb
|
243
227
|
- test/benchmark/tags.rb
|
244
|
-
- test/capture_backend_test.rb
|
245
228
|
- test/capture_sink_test.rb
|
246
229
|
- test/client_test.rb
|
247
|
-
- test/compatibility/dogstatsd_datagram_compatibility_test.rb
|
248
230
|
- test/datagram_builder_test.rb
|
249
231
|
- test/datagram_test.rb
|
250
|
-
- test/deprecations_test.rb
|
251
232
|
- test/dogstatsd_datagram_builder_test.rb
|
252
233
|
- test/environment_test.rb
|
253
234
|
- test/helpers/rubocop_helper.rb
|
254
235
|
- test/helpers_test.rb
|
255
236
|
- test/integration_test.rb
|
256
237
|
- test/log_sink_test.rb
|
257
|
-
- test/logger_backend_test.rb
|
258
238
|
- test/matchers_test.rb
|
259
|
-
- test/metric_test.rb
|
260
239
|
- test/null_sink_test.rb
|
261
240
|
- test/rubocop/measure_as_dist_argument_test.rb
|
262
241
|
- test/rubocop/metaprogramming_positional_arguments_test.rb
|
@@ -270,5 +249,4 @@ test_files:
|
|
270
249
|
- test/statsd_instrumentation_test.rb
|
271
250
|
- test/statsd_test.rb
|
272
251
|
- test/test_helper.rb
|
273
|
-
- test/udp_backend_test.rb
|
274
252
|
- test/udp_sink_test.rb
|