sbmt-kafka_consumer 3.2.1 → 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: 4d68fc606cb503382ebd9ff90d5e9a9c191c6905e0d76aeccfdef8d2fd98f2f4
4
- data.tar.gz: 847b1844371d842ed88cbfcfbff48f95d74de91a5b108869cdbba3238494a821
3
+ metadata.gz: b5a5ec88a0a62d524925444b52430e6d57331c2eb58dfff213b92b635353ea2f
4
+ data.tar.gz: 50d8e0b6320c0cc22b70dcc12c0fb8670802786d8637a901de953f04cfc39b46
5
5
  SHA512:
6
- metadata.gz: 4f3e97d8a636a24a7b81304be3410ee5e9960017369a1a7fcee8a166166cf8b5503ab9641cdf455d84cefaab69469ae1530c40e69aa1bc97eb3b4fa1cae1f501
7
- data.tar.gz: 5f8177ca6245d822974dc32a763628e7720ec89921fd45dc9ddeecf61dc9360b0690f9280fed400048afc2b02ac72b7c5c46a61e1068c92dd9d567b0e33db735
6
+ metadata.gz: 655cae48292b61cf07d6dd58acd9249ee2adbf4244ff74ec8a7674237619dd29832588c31bf9f6294c08fd3985de8c87bff9b0eb3145bce461461a06c8cd56f3
7
+ data.tar.gz: a1395fe3c16faa385cba9d8924101217043993d824b1ac7d2a1a28f31fc19c824c1a252346d6957c6c271d6c6927b072afeaae4b27397b874812d22868077ac5
data/CHANGELOG.md CHANGED
@@ -13,6 +13,12 @@ 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
+
16
22
  ## [3.2.1] - 2024-09-20
17
23
 
18
24
  ### Fixed
@@ -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.1"
5
+ VERSION = "3.2.2"
6
6
  end
7
7
  end
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.1
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-20 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