fluent-plugin-kafka 0.11.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +4 -0
- data/fluent-plugin-kafka.gemspec +1 -1
- data/lib/fluent/plugin/out_kafka2.rb +9 -3
- 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: fa8bd187d82171d2d909caee040959b99380852c82c94e7ffb12d9c9b4ab824e
|
4
|
+
data.tar.gz: ef617b72fd2908a3119fd086c330f01da867c16314d85dc78151d7489e557332
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fda25bea7239416714baae9ba577aad680617f1482f48aae8243b570d5e3fd090cab86fa6da0efb7ea8b4542745e4ad13cb131bcaacf9a5e0c653df044ced319
|
7
|
+
data.tar.gz: 53a84fed9f9bb11fdf7b4306af0e1900c216afc4546dc012c532db459d69f95047205c1e020884410cd30ebef915ed8e424f0734b97afc59169a2fe3aa459f5a
|
data/ChangeLog
CHANGED
data/fluent-plugin-kafka.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
|
|
13
13
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
14
|
gem.name = "fluent-plugin-kafka"
|
15
15
|
gem.require_paths = ["lib"]
|
16
|
-
gem.version = '0.11.
|
16
|
+
gem.version = '0.11.1'
|
17
17
|
gem.required_ruby_version = ">= 2.1.0"
|
18
18
|
|
19
19
|
gem.add_dependency "fluentd", [">= 0.10.58", "< 2"]
|
@@ -220,7 +220,8 @@ DESC
|
|
220
220
|
messages = 0
|
221
221
|
record_buf = nil
|
222
222
|
|
223
|
-
|
223
|
+
base_headers = @headers
|
224
|
+
mutate_headers = !@headers_from_record_accessors.empty?
|
224
225
|
|
225
226
|
begin
|
226
227
|
producer = @kafka.topic_producer(topic, @producer_opts)
|
@@ -232,8 +233,13 @@ DESC
|
|
232
233
|
partition = (@exclude_partition ? record.delete(@partition_key) : record[@partition_key]) || @default_partition
|
233
234
|
message_key = (@exclude_message_key ? record.delete(@message_key_key) : record[@message_key_key]) || @default_message_key
|
234
235
|
|
235
|
-
|
236
|
-
headers
|
236
|
+
if mutate_headers
|
237
|
+
headers = base_headers.clone
|
238
|
+
@headers_from_record_accessors.each do |key, header_accessor|
|
239
|
+
headers[key] = header_accessor.call(record)
|
240
|
+
end
|
241
|
+
else
|
242
|
+
headers = base_headers
|
237
243
|
end
|
238
244
|
|
239
245
|
record_buf = @formatter_proc.call(tag, time, record)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-kafka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hidemasa Togashi
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-08-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fluentd
|