sbmt-kafka_producer 3.1.1 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Appraisals +2 -1
- data/CHANGELOG.md +12 -0
- data/Gemfile +1 -1
- data/README.md +0 -1
- data/lib/generators/kafka_producer/install/templates/kafka_producer.yml +0 -1
- data/lib/sbmt/kafka_producer/base_producer.rb +0 -6
- data/lib/sbmt/kafka_producer/config/producer.rb +2 -3
- data/lib/sbmt/kafka_producer/railtie.rb +1 -1
- data/lib/sbmt/kafka_producer/version.rb +1 -1
- data/sbmt-kafka_producer.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ef04b2d6c65a948b331f8391febd8071c8c8b89a731cf93502d6db81c3f1bf4
|
4
|
+
data.tar.gz: '08994cb0a8a3fd85bda21025445aa100b522bc765e1587f41ee239ef69ad04f1'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 624be193d11ef46925a37ad8ba8060f9358165c73b5896209cf29ae3face7a3f614f85ed5e7b1551588eb15f0a203148c80c451fe198e531de040c2c24c4f5a1
|
7
|
+
data.tar.gz: bf2b7570b5b994cd4fa5c38caf5703b0dc19730ba77edbf0bed7e8a3ef89576f4f74942956abaf571750d9a84fa4b14adf1268831da090f27fa40caf677c674a
|
data/Appraisals
CHANGED
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.1] - 2024-12-26
|
17
|
+
|
18
|
+
### Fixed
|
19
|
+
|
20
|
+
- Fix initialize yabeda metrics
|
21
|
+
|
22
|
+
## [3.2.0] - 2024-11-22
|
23
|
+
|
24
|
+
### Changed
|
25
|
+
|
26
|
+
- Removed `ignore_kafka_error` option
|
27
|
+
|
16
28
|
## [3.1.1] - 2024-10-31
|
17
29
|
|
18
30
|
### Changed
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -62,7 +62,6 @@ The `config/kafka_producer.yml` file is the main configuration for this gem.
|
|
62
62
|
```yaml
|
63
63
|
default: &default
|
64
64
|
deliver: true
|
65
|
-
ignore_kafka_error: true
|
66
65
|
# see more options at https://github.com/karafka/waterdrop/blob/master/lib/waterdrop/config.rb
|
67
66
|
wait_on_queue_full: true
|
68
67
|
max_payload_size: 1000012
|
@@ -75,13 +75,7 @@ module Sbmt
|
|
75
75
|
result
|
76
76
|
end
|
77
77
|
|
78
|
-
def ignore_kafka_errors?
|
79
|
-
config.ignore_kafka_error.to_s == "true"
|
80
|
-
end
|
81
|
-
|
82
78
|
def log_error(error)
|
83
|
-
return true if ignore_kafka_errors?
|
84
|
-
|
85
79
|
log_tags = {stacktrace: error.backtrace.join("\n")}
|
86
80
|
|
87
81
|
logger.tagged(log_tags) do
|
@@ -27,15 +27,14 @@ module Sbmt
|
|
27
27
|
|
28
28
|
config_name :kafka_producer
|
29
29
|
|
30
|
-
attr_config :
|
30
|
+
attr_config :deliver, :wait_on_queue_full,
|
31
31
|
:max_payload_size, :max_wait_timeout,
|
32
32
|
:wait_on_queue_full_timeout,
|
33
33
|
auth: {}, kafka: {},
|
34
34
|
logger_class: "::Sbmt::KafkaProducer::Logger",
|
35
35
|
metrics_listener_class: "::Sbmt::KafkaProducer::Instrumentation::YabedaMetricsListener"
|
36
36
|
|
37
|
-
coerce_types
|
38
|
-
deliver: :boolean, wait_on_queue_full: :boolean,
|
37
|
+
coerce_types deliver: :boolean, wait_on_queue_full: :boolean,
|
39
38
|
max_payload_size: :integer, max_wait_timeout: :integer,
|
40
39
|
wait_on_queue_full_timeout: :integer
|
41
40
|
coerce_types kafka: coerce_to(Kafka)
|
data/sbmt-kafka_producer.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.homepage = "https://github.com/Kuper-Tech/sbmt-kafka_producer"
|
14
14
|
spec.required_ruby_version = ">= 3.0.0"
|
15
15
|
|
16
|
-
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
16
|
+
spec.metadata["allowed_push_host"] = ENV.fetch("NEXUS_URL", "https://rubygems.org")
|
17
17
|
|
18
18
|
spec.metadata["homepage_uri"] = spec.homepage
|
19
19
|
spec.metadata["source_code_uri"] = spec.homepage
|
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.
|
4
|
+
version: 3.2.1
|
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-
|
11
|
+
date: 2024-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: anyway_config
|