fluent-plugin-kafka 0.15.2 → 0.15.3

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: 866fb421d7097ccbac1bde2e279d9975bce4de086dab74609cadbe50429bb312
4
- data.tar.gz: 0e763fc4276177949f6cec2b4839ad5168892cd4d346d633f81449fdb8df84d7
3
+ metadata.gz: 730f14a0d24b98ac7df9683bc0836f826ff80def0ee61c833bc4c1e61bf435ac
4
+ data.tar.gz: 0a647554fb96f88ae75c8b872399545bfdb6b26d12247f3715c56dda2e628d57
5
5
  SHA512:
6
- metadata.gz: b41f5cb35d1c4dea3743e513b505e11f634dfcbc33e339f188f2ac4c2b710ed1357c00779e24873c5f4a0bdd5326f8c1a731b4f2a4c323dc6fde8b85bc78ef28
7
- data.tar.gz: df4061316f692fbe264b2344fd74f7ba1d15174bb91a617c09f5d9d3de6d50a5f0b6c8aa702ce9322d438ee6ed83b09cf620e71537e96e13db73882f01e291cb
6
+ metadata.gz: 802bef06a0cb0703e0e3c1d8c9581a96007b23a6b574d2c64f3bca362f6d4c531cbc4c9c17c78162705d655fc2e864af16182772a1db0ce2150c0e853b4f55ef
7
+ data.tar.gz: 0d3695bc1289b75cee1071fcf8e697250de9f0177b3facd69dd62e931a7b705fd93b24f886e683586d01f9daf9888d487ff6058da791d3779d09c076af854dd8
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ Release 0.15.3 - 2020/12/08
2
+
3
+ * in_kafka: Fix `record_time_key` parameter not working
4
+
1
5
  Release 0.15.2 - 2020/09/30
2
6
 
3
7
  * input: Support 3rd party parser
@@ -28,6 +32,7 @@ Release 0.14.0 - 2020/08/07
28
32
  Release 0.13.1 - 2020/07/17
29
33
 
30
34
  * in_kafka_group: Support ssl_verify_hostname parameter
35
+ * in_kafka_group: Support regex based topics
31
36
  * out_kafka2/out_rdkafka2: Support topic parameter with placeholders
32
37
 
33
38
  Release 0.13.0 - 2020/03/09
data/README.md CHANGED
@@ -139,6 +139,8 @@ Consume events by kafka consumer group features..
139
139
 
140
140
  See also [ruby-kafka README](https://github.com/zendesk/ruby-kafka#consuming-messages-from-kafka) for more detailed documentation about ruby-kafka options.
141
141
 
142
+ `topics` supports regex pattern since v0.13.1. If you want to use regex pattern, use `/pattern/` like `/foo.*/`.
143
+
142
144
  Consuming topic name is used for event tag. So when the target topic name is `app_event`, the tag is `app_event`. If you want to modify tag, use `add_prefix` or `add_suffix` parameter. With `add_prefix kafka`, the tag is `kafka.app_event`.
143
145
 
144
146
  ### Input plugin (@type 'rdkafka_group', supports kafka consumer groups, uses rdkafka-ruby)
@@ -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.15.2'
16
+ gem.version = '0.15.3'
17
17
  gem.required_ruby_version = ">= 2.1.0"
18
18
 
19
19
  gem.add_dependency "fluentd", [">= 0.10.58", "< 2"]
@@ -224,6 +224,7 @@ class Fluent::KafkaInput < Fluent::Input
224
224
  router,
225
225
  @kafka_message_key,
226
226
  @time_source,
227
+ @record_time_key,
227
228
  opt)
228
229
  }
229
230
  @topic_watchers.each {|tw|
@@ -248,7 +249,7 @@ class Fluent::KafkaInput < Fluent::Input
248
249
  end
249
250
 
250
251
  class TopicWatcher < Coolio::TimerWatcher
251
- def initialize(topic_entry, kafka, interval, parser, add_prefix, add_suffix, offset_manager, router, kafka_message_key, time_source, options={})
252
+ def initialize(topic_entry, kafka, interval, parser, add_prefix, add_suffix, offset_manager, router, kafka_message_key, time_source, record_time_key, options={})
252
253
  @topic_entry = topic_entry
253
254
  @kafka = kafka
254
255
  @callback = method(:consume)
@@ -260,6 +261,7 @@ class Fluent::KafkaInput < Fluent::Input
260
261
  @router = router
261
262
  @kafka_message_key = kafka_message_key
262
263
  @time_source = time_source
264
+ @record_time_key = record_time_key
263
265
 
264
266
  @next_offset = @topic_entry.offset
265
267
  if @topic_entry.offset == -1 && offset_manager
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.15.2
4
+ version: 0.15.3
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: 2020-09-30 00:00:00.000000000 Z
12
+ date: 2020-12-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd