sidekiq-cloudwatchmetrics 2.2.0 → 2.3.0

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: fb8deb7fa07fddb75c82ec3b631a803c0d12bb67176e4c210675be9e5b5e2206
4
- data.tar.gz: d4ea3bb0ecec06fdbe5e52f95f1bef2505bbc89550346301f5720f1750944335
3
+ metadata.gz: dcda0d610239286e3289711209bcd52f55a9ab00f9e37d8d768531ec125e24aa
4
+ data.tar.gz: 3214895b04fdff713a7ed11c110b7c895e91307594f6ad73c80064a390a89323
5
5
  SHA512:
6
- metadata.gz: f9568afd5661bb2f0520f109cbe671d85880cf834b919ee20813e7980bcee4426559b654596e352c23e3e3e5c1c5de8e7ffe918402d17aee225f59d122323a80
7
- data.tar.gz: f4f68b369bc2cea9f565346f103cff7c1323bf05aa80572181b3a11100b7276ec999bd5b22f15261de000d0c6e33be52d17d80a70b5ec01c0267c9483b3d4a89
6
+ metadata.gz: 96944fbb1a4b5669280e6146533d5f9d19ed9e67fec5feff31d1cdcb79c545bd0fb7529701bb72fdf72cef2fadc7e6a728c53d5d81726760a7dc4bf781f26d82
7
+ data.tar.gz: 12fdaf02f031a14937ca4dfc03ab47e96f2e77f43b2b6b635784367326fcf2a94a0c6fbe284981dab7f1fd06cc4876ce8b197bcdd9cca3660c4dbcdb1caa50e5
checksums.yaml.gz.sig CHANGED
Binary file
@@ -2,7 +2,6 @@
2
2
 
3
3
  require "sidekiq"
4
4
  require "sidekiq/api"
5
- require "sidekiq/util"
6
5
 
7
6
  require "aws-sdk-cloudwatch"
8
7
 
@@ -11,8 +10,9 @@ module Sidekiq::CloudWatchMetrics
11
10
  Sidekiq.configure_server do |config|
12
11
  publisher = Publisher.new(**kwargs)
13
12
 
14
- if Sidekiq.options[:lifecycle_events].has_key?(:leader)
15
- # Only publish metrics on the leader if we have a leader (sidekiq-ent)
13
+ # Sidekiq enterprise has a globally unique leader thread, making it
14
+ # easier to publish the cluster-wide metrics from one place.
15
+ if defined?(Sidekiq::Enterprise)
16
16
  config.on(:leader) do
17
17
  publisher.start
18
18
  end
@@ -34,11 +34,21 @@ module Sidekiq::CloudWatchMetrics
34
34
  end
35
35
 
36
36
  class Publisher
37
- include Sidekiq::Util
37
+ begin
38
+ require "sidekiq/util"
39
+ include Sidekiq::Util
40
+ rescue LoadError
41
+ # Sidekiq 6.5 refactored to use Sidekiq::Component
42
+ require "sidekiq/component"
43
+ include Sidekiq::Component
44
+ end
38
45
 
39
46
  INTERVAL = 60 # seconds
40
47
 
41
- def initialize(client: Aws::CloudWatch::Client.new, namespace: "Sidekiq", additional_dimensions: {})
48
+ def initialize(config: Sidekiq, client: Aws::CloudWatch::Client.new, namespace: "Sidekiq", additional_dimensions: {})
49
+ # Sidekiq 6.5+ requires @config, which defaults to the top-level
50
+ # `Sidekiq` module, but can be overridden when running multiple Sidekiqs.
51
+ @config = config
42
52
  @client = client
43
53
  @namespace = namespace
44
54
  @additional_dimensions = additional_dimensions.map { |k, v| {name: k.to_s, value: v.to_s} }
data.tar.gz.sig CHANGED
@@ -1,2 +1 @@
1
- ��-�(�cp���],�}���]�M��SӶ�� e���k{j��z��;G��NF+*�%��
2
- 5r��.�J� v�}l]j`�����2I��kH�WrdT�$1�<u���� � �����j�"����8';8Ʀ�*Z����V��N�j��HD٫Nax�� K�q¶����XY�!/�>w�@WE�̻?�<[��Z�����]~E�x�EF~�%b9tO˻.=���.WE���O��
1
+ V����i�&(���׽���:j.��(�̊�����2���%DaN-������NL@4%�%W
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-cloudwatchmetrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Cochran
@@ -10,25 +10,26 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIID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ic5Bhs+VdcDP/uwYp3adqy+4bT/XDFZQg
27
- tSjrAOTg3wck5aI+Tz90ONQJ83bnCRr1UPQ0T3PbWMjnNsEa9CAxUB845Sg+9yUz
28
- Tvf+pbX8JT9rawFDogxPhL7eRAbjg4MH9amp5l8HTVCAsW8vqv7wM4rtMNAaXmik
29
- LJghfDEf70fTtbs4Zv57pPhn1b7wBNf8fh+TZOlYAA6dFtQXoCwfE6bWgQU=
22
+ KzE3L63A3PZvExzLrN9u09kuWLLJfXB2sGOlw3n9t72rJiuBr3/OQQIDAQABo20w
23
+ azAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQU99dfRjEKFyczTeIz
24
+ m3ZsDWrNC80wGAYDVR0RBBEwD4ENc2oyNkBzajI2LmNvbTAYBgNVHRIEETAPgQ1z
25
+ ajI2QHNqMjYuY29tMA0GCSqGSIb3DQEBCwUAA4IBAQCsa7k3TABBcyXotr3yCq6f
26
+ xsgbMG9FR71c4wRgVNQi9O3jN64fQBbxo//BQlHfPCjs1CeU4es9xdQFfhqXAPXG
27
+ P7mK3+qd5jObjh6l3/rDKrTXNS+P+YO/1frlZ6xPjCA8XgGc4y0rhAjZnVBDV6t1
28
+ kmdtEmue1s1OxaMakr78XRZDxEuAeLM5fg8MYnlOFygEcAH6lZkTjXavY7s9MXRB
29
+ AAMioxgB6J5QhXQ42OSWIzwHZIbSv3DV9Lf5sde50HIW5f9u5jn29TUGDhSWYKkh
30
+ LDvy9dfwMMOdIZi75Q8SBBib84AuwhMHIlUv9FcHhh3dXsDDYkrVrpUAwCsG6yCm
30
31
  -----END CERTIFICATE-----
31
- date: 2022-02-24 00:00:00.000000000 Z
32
+ date: 2022-08-15 00:00:00.000000000 Z
32
33
  dependencies:
33
34
  - !ruby/object:Gem::Dependency
34
35
  name: sidekiq
metadata.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- �qJ�O�@B���gQ?W���\�W�Q������V�ͿM�CV�U�����c�2�e��8Ay�u�/oF�����ʝ����K�;�� \����?�\"�}7�"~�̎HA�%O-�S9 �I�|��#�LX�q��,N���}4�i��N]���.��0vFSkt^���47�
2
-
1
+ �����舤-�pq*
2
+ D����J�����@}��%��b`O�Tpg�"���v�W�h�m�g�X���3�6VεH�%��As�"���}�|kؐ˦�>����1����x��+��JL�:���J���6��/��R�<⩋No�V.�OF2u�!�쥅}/e)��1���7�� t�����U;�-8uti����@�劋nY��/����\��.W`om���1`o�r�� ���q�G,T�ŋ