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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +19 -0
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/waterdrop/config.rb +4 -1
- data/lib/waterdrop/version.rb +1 -1
- data.tar.gz.sig +3 -5
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a072e6e8ee65e0ce6f5c337c3a56b043140d0a5c60a1fd93d70b329c50932c5
|
4
|
+
data.tar.gz: 3b0d853ed72939da7302a89cca314d105bf3eef7c7abebe0c37c45960c2e8a80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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
|
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` (
|
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
|
|
data/lib/waterdrop/config.rb
CHANGED
@@ -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
|
data/lib/waterdrop/version.rb
CHANGED
data.tar.gz.sig
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
Rj,������и]��cGv���U���2�������L�
|
5
|
-
�r~�3���S`���۹�?�
|
1
|
+
�hlV���8��<��<(ĉr����f�����E\ϟ�}��5�L a�4�M�O�����%�`��Dˣ�M�B�6��P�K��W,a���e��� &ipb
|
2
|
+
G�C}�Y��X4��O�Q^�
|
3
|
+
#�p;���^�&�U0�q)����YJ7��9�cg����[!� V�hj�ٌ�TD�d�p�U��p���3Ss�
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|