deimos-ruby 2.3.2 → 2.3.4

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: 11656e5d925198470fb1c6918808e2dda7b769d98397e9b0f973316a21fe1616
4
- data.tar.gz: 4f34eae61a408809aaa6c0d70d0fe535c27ea300e479612c8273bd63cf553b62
3
+ metadata.gz: 50741917506ac69c272492e71217376be5fed3de24cb8695940217d8c466b0a3
4
+ data.tar.gz: 87de5660b74dfa13d35ebdf207c0732ca22c569e846d291025936ff6956b99f2
5
5
  SHA512:
6
- metadata.gz: 60c5d0fe69d3787c972c647d907de9159c4f33a63c8f1e3913c9816bd18e056f24721549377bf3ebdc25578c800c62ad7ab2f5a056e0562cacd1026858ea5d2f
7
- data.tar.gz: 252a59f9db351029fd2cd67c679bddd50a854e4797855a8c7b5e7248e6b0ab71aad041d7b7e3dd900eb5c90c6cc5f82301461f58a749fe997f99d8f65d8b3f3e
6
+ metadata.gz: 114052fbbd43a7b56bac71243399a3ba6d05b3b77e4c4bca73b28f0af0e7cf09647ec095f0cce148371453298525626fccfac5989ba74dd52086e92c8121f0cd
7
+ data.tar.gz: 9e45f7fdb1d26f30969a6c3b0142907e6aa8949b11a984eabdefd91e5fc85acac6c338f7706f62711b28f50a71012aee5db97ecceec437472a4c386d7dff38cd
data/CHANGELOG.md CHANGED
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## UNRELEASED
9
9
 
10
+ # 2.3.4 - 2026-02-21
11
+
12
+ - Fix/feature: Send `consumer.lags` and `consumer.lags_delta` metrics via MinimalDatadogListener.
13
+
10
14
  # 2.3.2 - 2026-02-20
11
15
 
12
16
  - Feature: Add overridable process_message? for batch consumption.
@@ -6,8 +6,12 @@ require 'deimos/metrics/minimal_datadog_listener'
6
6
 
7
7
  module Deimos
8
8
  module Metrics
9
- # A Metrics wrapper class for Datadog, with only minimal metrics being sent. This will not
10
- # send any rdkafka metrics, and only the following:
9
+ # A Metrics wrapper class for Datadog, with only minimal metrics being sent. This will only
10
+ # send the following rdkafka metrics:
11
+ # * consumer.lags
12
+ # * consumer.lags_delta
13
+ #
14
+ # and only the following other metrics:
11
15
  # * consumer_group
12
16
  # * error_occurred
13
17
  # * consumer.messages
@@ -28,7 +32,14 @@ module Deimos
28
32
  if config[:karafka_distribution_mode]
29
33
  karafka_config.distribution_mode = config[:karafka_distribution_mode]
30
34
  end
31
- karafka_config.rd_kafka_metrics = []
35
+ karafka_config.rd_kafka_metrics = [
36
+ Karafka::Instrumentation::Vendors::Datadog::MetricsListener::RdKafkaMetric.new(
37
+ :gauge, :topics, 'consumer.lags', 'consumer_lag_stored'
38
+ ),
39
+ Karafka::Instrumentation::Vendors::Datadog::MetricsListener::RdKafkaMetric.new(
40
+ :gauge, :topics, 'consumer.lags_delta', 'consumer_lag_stored_d'
41
+ )
42
+ ]
32
43
  end
33
44
  Karafka.monitor.subscribe(karafka_listener)
34
45
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Deimos
4
- VERSION = '2.3.2'
4
+ VERSION = '2.3.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deimos-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.2
4
+ version: 2.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Orner