statsd-instrument 3.9.6 → 3.9.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/statsd/instrument/batched_sink.rb +2 -7
- data/lib/statsd/instrument/version.rb +1 -1
- data/test/uds_sink_test.rb +6 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f878f6a9d5a1ebb2aa0459eec131628d04a19b85b9cd7bc4b0493f5bc946423f
|
4
|
+
data.tar.gz: 41e2a93dd2257655bc64235aebf4637751101f69da4f342aeaab5a3b56bf21e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4aaf2c5f29bcf2c815298d8047208be603c360d2c3c4cd342fd77c0337f310fffb51c0d3706338d922e0125fdad824084097828910ef422933f2526411904523
|
7
|
+
data.tar.gz: ba4d68b8078cb033ec887f35d8682c7771291b3197a054269aa5e44ab6538f29f0b261e3b8c6a5259e02cf3a7f9aa0376ad21fb7cd709b50fc4b516e7ba6b4cf
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ section below.
|
|
6
6
|
|
7
7
|
## Unreleased changes
|
8
8
|
|
9
|
+
## Version 3.9.7
|
10
|
+
|
11
|
+
- [#389](https://github.com/Shopify/statsd-instrument/pull/389) - Fixing bug with BatchedSink constructor when using UDS, the constructor was not properly passing the Sink to the BatchedSink.
|
12
|
+
|
9
13
|
## Version 3.9.6
|
10
14
|
|
11
15
|
- [#388](https://github.com/Shopify/statsd-instrument/pull/388) - Properly fixing the bug when using aggregation and sending sampled
|
@@ -18,13 +18,8 @@ module StatsD
|
|
18
18
|
|
19
19
|
class << self
|
20
20
|
def for_addr(addr, **kwargs)
|
21
|
-
|
22
|
-
|
23
|
-
new(sink, **kwargs)
|
24
|
-
else
|
25
|
-
connection = UdsConnection.new(addr)
|
26
|
-
new(connection, **kwargs)
|
27
|
-
end
|
21
|
+
sink = StatsD::Instrument::Sink.for_addr(addr)
|
22
|
+
new(sink, **kwargs)
|
28
23
|
end
|
29
24
|
|
30
25
|
def finalize(dispatcher)
|
data/test/uds_sink_test.rb
CHANGED
@@ -121,6 +121,12 @@ class BatchedUdsSinkTest < Minitest::Test
|
|
121
121
|
@sinks.each(&:shutdown)
|
122
122
|
end
|
123
123
|
|
124
|
+
def test_construct_from_addr
|
125
|
+
batched_sink = StatsD::Instrument::BatchedSink.for_addr(@socket_path)
|
126
|
+
assert_instance_of(StatsD::Instrument::BatchedSink, batched_sink)
|
127
|
+
assert_instance_of(StatsD::Instrument::UdsConnection, batched_sink.connection)
|
128
|
+
end
|
129
|
+
|
124
130
|
def test_send_metric_with_tags
|
125
131
|
metric = "test.metric"
|
126
132
|
value = 42
|
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: 3.9.
|
4
|
+
version: 3.9.7
|
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: 2024-
|
13
|
+
date: 2024-11-06 00:00:00.000000000 Z
|
14
14
|
dependencies: []
|
15
15
|
description: A StatsD client for Ruby apps. Provides metaprogramming methods to inject
|
16
16
|
StatsD instrumentation into your code.
|
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '0'
|
132
132
|
requirements: []
|
133
|
-
rubygems_version: 3.5.
|
133
|
+
rubygems_version: 3.5.23
|
134
134
|
signing_key:
|
135
135
|
specification_version: 4
|
136
136
|
summary: A StatsD client for Ruby apps
|