waterdrop 2.4.5 → 2.4.6

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: e1cabe8225d1038bc9fab5c41efaf5822b3d6a633dac233f92058874be8cb5ae
4
- data.tar.gz: ac830393a2c6ed2d50042a08fbd59a6d2ebbd0de505a53953c67b3d50ac1dd22
3
+ metadata.gz: 2a072e6e8ee65e0ce6f5c337c3a56b043140d0a5c60a1fd93d70b329c50932c5
4
+ data.tar.gz: 3b0d853ed72939da7302a89cca314d105bf3eef7c7abebe0c37c45960c2e8a80
5
5
  SHA512:
6
- metadata.gz: d757751cb8a62fee91c5aff7ac30260e3b45d62d17db71eedcd23b77881b4564b8dc0bef534eb060049a65b5d99610c09c86eeb13913a999d864dffc3adee5e3
7
- data.tar.gz: 51cb53cc3a4f168b3157ad840157f2df8a9479381972fe0d8cc13b445449099373acd76d37cf0206ec35d625fb75723b3ab4a3e0c193413de9844c54106209c5
6
+ metadata.gz: 50b61ccd6d84ee67a7de95dde8dfc926dd77cc0ebcba6299704a897da88c55a33352a87f0bed725160dd2859e6258d683dc73fec0c92bf3370eeddf1b4490e3c
7
+ data.tar.gz: a44bdb91da44a8767a385d829eaefd86f214c1baf03b5776c9d3f3d89ac6e2106b07b0da3185208b160110f0cfc5002bb779af66a4682db7d4d96211de7964fd
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # WaterDrop changelog
2
2
 
3
+ ## 2.4.6 (2022-12-10)
4
+ - Set `statistics.interval.ms` to 5 seconds by default, so the defaults cover all the instrumentation out of the box.
5
+
6
+ ### Upgrade notes
7
+
8
+ If you want to disable `librdkafka` statistics because you do not use them at all, update the `kafka` `statistics.interval.ms` setting and set it to `0`:
9
+
10
+ ```ruby
11
+ producer = WaterDrop::Producer.new
12
+
13
+ producer.setup do |config|
14
+ config.deliver = true
15
+ config.kafka = {
16
+ 'bootstrap.servers': 'localhost:9092',
17
+ 'statistics.interval.ms': 0
18
+ }
19
+ end
20
+ ```
21
+
3
22
  ## 2.4.5 (2022-12-10)
4
23
  - Fix invalid error scope visibility.
5
24
  - Cache partition count to improve messages production and lower stress on Kafka when `partition_key` is on.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- waterdrop (2.4.5)
4
+ waterdrop (2.4.6)
5
5
  karafka-core (>= 2.0.6, < 3.0.0)
6
6
  zeitwerk (~> 2.3)
7
7
 
data/README.md CHANGED
@@ -301,9 +301,9 @@ See the `WaterDrop::Instrumentation::Monitor::EVENTS` for the list of all the su
301
301
 
302
302
  ### Usage statistics
303
303
 
304
- WaterDrop may be configured to emit internal metrics at a fixed interval by setting the `kafka` `statistics.interval.ms` configuration property to a value > `0`. Once that is done, emitted statistics are available after subscribing to the `statistics.emitted` publisher event.
304
+ WaterDrop is configured to emit internal `librdkafka` metrics every five seconds. You can change this by setting the `kafka` `statistics.interval.ms` configuration property to a value greater of equal `0`. Emitted statistics are available after subscribing to the `statistics.emitted` publisher event. If set to `0`, metrics will not be published.
305
305
 
306
- The statistics include all of the metrics from `librdkafka` (full list [here](https://github.com/edenhill/librdkafka/blob/master/STATISTICS.md)) as well as the diff of those against the previously emitted values.
306
+ The statistics include all of the metrics from `librdkafka` (complete list [here](https://github.com/edenhill/librdkafka/blob/master/STATISTICS.md)) as well as the diff of those against the previously emitted values.
307
307
 
308
308
  For several attributes like `txmsgs`, `librdkafka` publishes only the totals. In order to make it easier to track the progress (for example number of messages sent between statistics emitted events), WaterDrop diffs all the numeric values against previously available numbers. All of those metrics are available under the same key as the metric but with additional `_d` postfix:
309
309
 
@@ -9,7 +9,10 @@ module WaterDrop
9
9
 
10
10
  # Defaults for kafka settings, that will be overwritten only if not present already
11
11
  KAFKA_DEFAULTS = {
12
- 'client.id': 'waterdrop'
12
+ 'client.id': 'waterdrop',
13
+ # emit librdkafka statistics every five seconds. This is used in instrumentation.
14
+ # When disabled, part of metrics will not be published and available.
15
+ 'statistics.interval.ms': 5_000
13
16
  }.freeze
14
17
 
15
18
  private_constant :KAFKA_DEFAULTS
@@ -3,5 +3,5 @@
3
3
  # WaterDrop library
4
4
  module WaterDrop
5
5
  # Current WaterDrop version
6
- VERSION = '2.4.5'
6
+ VERSION = '2.4.6'
7
7
  end
data.tar.gz.sig CHANGED
@@ -1,5 +1,3 @@
1
- w�9T���BSC��=Y<_ʀ����:����-+A�Y���Lo��.}�VNyҙH.�mJu�4����؄\Y2�� 9s]Ї�AԷ[�7JQ�� 3��]ʳ���Su}"����samB봧�^S����n���K��b�N��F�Ԙ����g��m �,�4r��M�B`
2
- �H>��Kh�*���7��
3
- �nA�*�%gOnz����!CWAP!SҼ8h��n���9z'�F��j�òr@D�>�V�~�
4
- Rj,������и]��cGv���U���2����� ��L�
5
- �r~�3���S`���۹�?�
1
+ hlV���8��<��<(ĉr����f�����E\ϟ�}��5L a�4�MO�����%�`��Dˣ�MB�6��P�K��W,a���e��� &ipb
2
+ G�C}�Y��X4��O�Q^�
3
+ #�p;���^�&�U0q)����YJ7��9�cg����[!� V�򃔑hj�ٌ�TD�d�p�U ��p���3Ss
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: waterdrop
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.5
4
+ version: 2.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Mensfeld
metadata.gz.sig CHANGED
Binary file