statsd-instrument 3.9.1 → 3.9.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 436100176f41a4557dfad3169208a34581a4a51ed03532857ce0192ef0586f95
4
- data.tar.gz: 888b9d6dcab8741aede0db4044f9a4d5ce0eb146ce016037b5ee278296f1f2a1
3
+ metadata.gz: a392592155d75787a30ea7cb16342a84cda2a1c63deb978550f4f9118e997cbb
4
+ data.tar.gz: 61a5e84e4b025fead6941adef95d7ddd341a97597644719ce74d49ecfba1a595
5
5
  SHA512:
6
- metadata.gz: 181b505253e000ae9f4b457716e4715227dbdc81d85357bedc335296af681d2975e4da0062abd4028b87d37462cd3ae5280f1033886a1b96a9bf566c32cf7930
7
- data.tar.gz: cbc3e3cb9ed41abfda94075eeb4e25e29445f42447af826616cc3545419be2e4ceeab273183bbb56af3e166066ef5bb02ed19ac09b4467782c0184e5251e454f
6
+ metadata.gz: 7b703ad60f188205c6672498bb0791766e77763c867371025a01c4d4469895e11cc5a9b7ab4180e9db259066125392fe6074bf0cb8836c133a2a7dee8232bf61
7
+ data.tar.gz: cb9afebc8101618965e419a4ba841863d4c20df54fced19f4d71c726bf168930f74b4b5559538d797f4736a7f02342ded3b51aa7fad1116fe82e2dd78f38e1a2
data/CHANGELOG.md CHANGED
@@ -6,6 +6,15 @@ section below.
6
6
 
7
7
  ## Unreleased changes
8
8
 
9
+ ## Version 3.9.3
10
+
11
+ - [#384](https://github.com/Shopify/statsd-instrument/pull/382) - Fix warnings in Rubocop cops.
12
+
13
+ ## Version 3.9.2
14
+
15
+ - [#381](https://github.com/Shopify/statsd-instrument/pull/381) - Reduce log level of some messages inside new Aggregator
16
+ to avoid contention and verbosity.
17
+
9
18
  ## Version 3.9.1
10
19
 
11
20
  - [#378](https://github.com/Shopify/statsd-instrument/pull/378) - Respect sampling rate when aggregation is enabled, just for timing metrics.
@@ -246,11 +246,11 @@ module StatsD
246
246
  return false unless Thread.main.alive?
247
247
 
248
248
  if @pid != Process.pid
249
- StatsD.logger.info { "[#{self.class.name}] Restarting the flush thread after fork" }
249
+ StatsD.logger.debug { "[#{self.class.name}] Restarting the flush thread after fork" }
250
250
  @pid = Process.pid
251
251
  @aggregation_state.clear
252
252
  else
253
- StatsD.logger.info { "[#{self.class.name}] Restarting the flush thread" }
253
+ StatsD.logger.debug { "[#{self.class.name}] Restarting the flush thread" }
254
254
  end
255
255
  @flush_thread = Thread.new do
256
256
  Thread.current.abort_on_exception = true
@@ -15,7 +15,7 @@ module RuboCop
15
15
  # --only StatsD/MeasureAsDistArgument
16
16
  #
17
17
  # This cop will not autocorrect offenses.
18
- class MeasureAsDistArgument < Cop
18
+ class MeasureAsDistArgument < Base
19
19
  include RuboCop::Cop::StatsD
20
20
 
21
21
  MSG = <<~MSG
@@ -16,7 +16,7 @@ module RuboCop
16
16
  #
17
17
  #
18
18
  # This cop will not autocorrect the offenses it finds, but generally the fixes are easy to fix
19
- class MetaprogrammingPositionalArguments < Cop
19
+ class MetaprogrammingPositionalArguments < Base
20
20
  include RuboCop::Cop::StatsD
21
21
 
22
22
  MSG = "Use keyword arguments for StatsD metaprogramming macros"
@@ -12,7 +12,7 @@ module RuboCop
12
12
  # --only StatsD/MetricPrefixArgument
13
13
  #
14
14
  # This cop will not autocorrect offenses.
15
- class MetricPrefixArgument < Cop
15
+ class MetricPrefixArgument < Base
16
16
  include RuboCop::Cop::StatsD
17
17
 
18
18
  MSG = <<~MSG
@@ -14,7 +14,7 @@ module RuboCop
14
14
  # This cop cannot autocorrect offenses. In production code, StatsD should be used in a fire-and-forget
15
15
  # fashion. This means that you shouldn't rely on the return value. If you really need to access the
16
16
  # emitted metrics, you can look into `capture_statsd_calls`
17
- class MetricReturnValue < Cop
17
+ class MetricReturnValue < Base
18
18
  include RuboCop::Cop::StatsD
19
19
 
20
20
  MSG = "Do not use the return value of StatsD metric methods"
@@ -16,7 +16,7 @@ module RuboCop
16
16
  # value as the second argument, rather than a keyword argument.
17
17
  #
18
18
  # `StatsD.increment('foo', value: 3)` => `StatsD.increment('foo', 3)`
19
- class MetricValueKeywordArgument < Cop
19
+ class MetricValueKeywordArgument < Base
20
20
  include RuboCop::Cop::StatsD
21
21
 
22
22
  MSG = <<~MSG
@@ -25,7 +25,7 @@ module RuboCop
25
25
  # same options.
26
26
  # - If you have to, you can call the old methods on `StatsD.legacy_singleton_client`. Note
27
27
  # that this option will go away in the next major version.
28
- class SingletonConfiguration < Cop
28
+ class SingletonConfiguration < Base
29
29
  include RuboCop::Cop::StatsD
30
30
 
31
31
  MSG = <<~MESSAGE
@@ -13,7 +13,7 @@ module RuboCop
13
13
  # --only StatsD/SplatArguments
14
14
  #
15
15
  # This cop will not autocorrect offenses.
16
- class SplatArguments < Cop
16
+ class SplatArguments < Base
17
17
  include RuboCop::Cop::StatsD
18
18
 
19
19
  MSG = "Do not use splat arguments in StatsD metric calls"
@@ -2,6 +2,6 @@
2
2
 
3
3
  module StatsD
4
4
  module Instrument
5
- VERSION = "3.9.1"
5
+ VERSION = "3.9.3"
6
6
  end
7
7
  end
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.1
4
+ version: 3.9.3
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-09-16 00:00:00.000000000 Z
13
+ date: 2024-10-22 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.18
133
+ rubygems_version: 3.5.22
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: A StatsD client for Ruby apps