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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62a2601a6b425e15a8f3b616fcb182d48548179d95bc5b9bbdef74f5cdabcc1d
4
- data.tar.gz: 64a4fd724bcee0e6fe8cac4001439c6a9e0b4b9e5234cd5b654b3df4045171cf
3
+ metadata.gz: f878f6a9d5a1ebb2aa0459eec131628d04a19b85b9cd7bc4b0493f5bc946423f
4
+ data.tar.gz: 41e2a93dd2257655bc64235aebf4637751101f69da4f342aeaab5a3b56bf21e3
5
5
  SHA512:
6
- metadata.gz: d74d19d5e29895763d423dd0daf67bedfeeb3e05ebff891f87eda90d4482648f5cd8bb3b163c000f2fe70473ece32f9f4febf36530bcfd16ab2d9d699cf1d49d
7
- data.tar.gz: 18d287d1d24792d9e63d7d2f2db3bee74fd929d7e4fd5ea1dccb50447a7278de7cfe8f088184064298809e70ef82b3d719dc27c5d6dc07edbc01b5747dff7246
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
- if addr.include?(":")
22
- sink = StatsD::Instrument::Sink.for_addr(addr)
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)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module StatsD
4
4
  module Instrument
5
- VERSION = "3.9.6"
5
+ VERSION = "3.9.7"
6
6
  end
7
7
  end
@@ -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.6
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-10-31 00:00:00.000000000 Z
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.22
133
+ rubygems_version: 3.5.23
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: A StatsD client for Ruby apps