sbmt-kafka_producer 3.2.1 → 3.2.3

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: 7ef04b2d6c65a948b331f8391febd8071c8c8b89a731cf93502d6db81c3f1bf4
4
- data.tar.gz: '08994cb0a8a3fd85bda21025445aa100b522bc765e1587f41ee239ef69ad04f1'
3
+ metadata.gz: 0f09eab62f9257e3866e80b90effed91c846d30653948ee74c54f3f1ef6a5d72
4
+ data.tar.gz: d318af26889f8e7290782fd38340d24affcb49e49f829583a00dd1c6ec9e6404
5
5
  SHA512:
6
- metadata.gz: 624be193d11ef46925a37ad8ba8060f9358165c73b5896209cf29ae3face7a3f614f85ed5e7b1551588eb15f0a203148c80c451fe198e531de040c2c24c4f5a1
7
- data.tar.gz: bf2b7570b5b994cd4fa5c38caf5703b0dc19730ba77edbf0bed7e8a3ef89576f4f74942956abaf571750d9a84fa4b14adf1268831da090f27fa40caf677c674a
6
+ metadata.gz: 24451fe6bde64c82daede5de904521718dba02235782827ac6bf063b89ffb2cbea87fe5cb37a2d1c176f073dedf06d2d6929ee7b9631a8ffd971f1985ee360f5
7
+ data.tar.gz: 951cb140c2d063e50b50983ff5ed53f8030ed91fde4a1b9e3f66cc311b280a213f7c08e5b0e23d53ecd8923e3dbe2117d8a3979b7b736dd4f7e604c01efb7640
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.3] - 2025-04-02
17
+
18
+ ### Fixed
19
+
20
+ - Properly resolve constant `YabedaConfigurer`
21
+
22
+ ## [3.2.2] - 2025-01-27
23
+
24
+ ### Fixed
25
+
26
+ - Kafka configuration was overwritten with the default authorization options (#2)
27
+
16
28
  ## [3.2.1] - 2024-12-26
17
29
 
18
30
  ### Fixed
data/README.md CHANGED
@@ -106,6 +106,18 @@ auth:
106
106
  sasl_mechanism: SCRAM-SHA-512
107
107
  ```
108
108
 
109
+ If you need to use another variant, use the low-level custom Kafka options `kafka_config:` of `config/kafka_producer.yml`. These options will overwrite the options in the auth section.
110
+
111
+ Example of SASL_SSL protocol auth via `kafka_config`:
112
+
113
+ ```yaml
114
+ kafka_config:
115
+ security.protocol: SASL_SSL
116
+ sasl.username: user
117
+ sasl.password: pwd
118
+ ssl.ca.pem: ca_cert
119
+ sasl.mechanism: SCRAM-SHA-512
120
+ ```
109
121
  ### `kafka` config section
110
122
 
111
123
  The `servers` key is required and should be in rdkafka format: without `kafka://` prefix, for example: `srv1:port1,srv2:port2,...`.
@@ -41,8 +41,8 @@ module Sbmt
41
41
  coerce_types auth: coerce_to(Auth)
42
42
 
43
43
  def to_kafka_options
44
- kafka.to_kafka_options
45
- .merge(auth.to_kafka_options)
44
+ auth.to_kafka_options
45
+ .merge(kafka.to_kafka_options)
46
46
  end
47
47
  end
48
48
  end
@@ -4,6 +4,8 @@ module Sbmt
4
4
  module KafkaProducer
5
5
  module Instrumentation
6
6
  class OpenTelemetryTracer
7
+ delegate :enabled?, to: :class
8
+
7
9
  class << self
8
10
  def enabled?
9
11
  !!@enabled
@@ -12,10 +14,6 @@ module Sbmt
12
14
  attr_writer :enabled
13
15
  end
14
16
 
15
- def enabled?
16
- self.class.enabled?
17
- end
18
-
19
17
  def call(message)
20
18
  return message unless enabled?
21
19
 
@@ -4,7 +4,8 @@ module Sbmt
4
4
  module KafkaProducer
5
5
  class Railtie < Rails::Railtie
6
6
  config.before_initialize do
7
- YabedaConfigurer.configure
7
+ require "sbmt/kafka_producer/yabeda_configurer"
8
+ ::Sbmt::KafkaProducer::YabedaConfigurer.configure
8
9
  end
9
10
 
10
11
  initializer "sbmt_kafka_producer_opentelemetry_init.configure_rails_initialization",
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sbmt
4
4
  module KafkaProducer
5
- VERSION = "3.2.1"
5
+ VERSION = "3.2.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sbmt-kafka_producer
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
4
+ version: 3.2.3
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-12-27 00:00:00.000000000 Z
11
+ date: 2025-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: anyway_config
@@ -426,7 +426,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
426
426
  - !ruby/object:Gem::Version
427
427
  version: '0'
428
428
  requirements: []
429
- rubygems_version: 3.1.6
429
+ rubygems_version: 3.3.7
430
430
  signing_key:
431
431
  specification_version: 4
432
432
  summary: Ruby gem for producing Kafka messages