sbmt-kafka_consumer 3.2.0 → 3.2.2

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: 884f55960d86ac5b756f5b7defc30298e6918a543a168f69613972b6f4dd1282
4
- data.tar.gz: 4521497f45d7c2bdf7fb78de36ddba7b077a51aee92c5c7aab41057e9b0e1f5a
3
+ metadata.gz: b5a5ec88a0a62d524925444b52430e6d57331c2eb58dfff213b92b635353ea2f
4
+ data.tar.gz: 50d8e0b6320c0cc22b70dcc12c0fb8670802786d8637a901de953f04cfc39b46
5
5
  SHA512:
6
- metadata.gz: d25efefade51458b46dd3f060983143f9de35d71d7e007dd082daf5f4a6d8a8a635daff400337d38a8621cdda1ad694e115f4816594cb9f94bd408ec8ddd2b9a
7
- data.tar.gz: 7fcf377249867d6694515bf006af17de6ade409ddf813bffc63471d437cd1752f659c72d210f071fcf937f6be99f75bf4028e25a3b803d7abfd04e8fd464fdb3
6
+ metadata.gz: 655cae48292b61cf07d6dd58acd9249ee2adbf4244ff74ec8a7674237619dd29832588c31bf9f6294c08fd3985de8c87bff9b0eb3145bce461461a06c8cd56f3
7
+ data.tar.gz: a1395fe3c16faa385cba9d8924101217043993d824b1ac7d2a1a28f31fc19c824c1a252346d6957c6c271d6c6927b072afeaae4b27397b874812d22868077ac5
data/CHANGELOG.md CHANGED
@@ -13,6 +13,18 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
13
13
 
14
14
  ### Fixed
15
15
 
16
+ ## [3.2.2] - 2024-09-23
17
+
18
+ ### Fixed
19
+
20
+ - log OTEL `trace_id`
21
+
22
+ ## [3.2.1] - 2024-09-20
23
+
24
+ ### Fixed
25
+
26
+ - Limit Karafka version to less than 2.4.12 since `bootstrap.servers` has been made required
27
+
16
28
  ## [3.2.0] - 2024-09-17
17
29
 
18
30
  ### Added
@@ -162,7 +162,11 @@ module Sbmt
162
162
  end
163
163
 
164
164
  def trace_id
165
- @trace_id ||= SecureRandom.base58
165
+ return nil unless defined?(::OpenTelemetry)
166
+
167
+ context = ::OpenTelemetry::Trace.current_span.context
168
+
169
+ context.valid? ? context.hex_trace_id : nil
166
170
  end
167
171
 
168
172
  def config
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sbmt
4
4
  module KafkaConsumer
5
- VERSION = "3.2.0"
5
+ VERSION = "3.2.2"
6
6
  end
7
7
  end
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
33
33
 
34
34
  spec.add_dependency "rails", ">= 6.1"
35
35
  spec.add_dependency "zeitwerk", "~> 2.3"
36
- spec.add_dependency "karafka", "~> 2.4"
36
+ spec.add_dependency "karafka", "~> 2.4", "< 2.4.12"
37
37
  spec.add_dependency "yabeda", ">= 0.11"
38
38
  spec.add_dependency "anyway_config", ">= 2.4.0"
39
39
  spec.add_dependency "thor"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sbmt-kafka_consumer
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kuper Ruby-Platform Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-18 00:00:00.000000000 Z
11
+ date: 2024-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -45,6 +45,9 @@ dependencies:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '2.4'
48
+ - - "<"
49
+ - !ruby/object:Gem::Version
50
+ version: 2.4.12
48
51
  type: :runtime
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
@@ -52,6 +55,9 @@ dependencies:
52
55
  - - "~>"
53
56
  - !ruby/object:Gem::Version
54
57
  version: '2.4'
58
+ - - "<"
59
+ - !ruby/object:Gem::Version
60
+ version: 2.4.12
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: yabeda
57
63
  requirement: !ruby/object:Gem::Requirement