adp-fluent-plugin-kinesis 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fluent/plugin/kinesis.rb +3 -0
- data/lib/fluent_plugin_kinesis/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e34d347f710d0d69f82b19add79c4b458b2c7a1c40ddba3b00087dea8111f4d
|
4
|
+
data.tar.gz: ff3f728332988e411ea2918dcde84a284d2e7f81f871af0a2a3131892a718438
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b62b0eda02af075652125f5e75895532772854c2916bccf5870e6f93f29dd06729a4c3f2ad13ab2a860a1a27b136ece96b0ef4c9d41244a0308c22b9e779945f
|
7
|
+
data.tar.gz: faf1d5b48454907b9ff90c24a08742515e7c95da13734eeb15f46a4823a7439bfa743689d907e9c6bac6768811ad61f5f2a453ebc81e55c2b8289191bac8144f
|
@@ -17,6 +17,7 @@ require 'fluent/msgpack_factory'
|
|
17
17
|
require 'fluent/plugin/output'
|
18
18
|
require 'fluent/plugin/kinesis_helper/client'
|
19
19
|
require 'fluent/plugin/kinesis_helper/api'
|
20
|
+
require 'fluent/plugin/kinesis_helper/compression'
|
20
21
|
require 'zlib'
|
21
22
|
|
22
23
|
module Fluent
|
@@ -112,12 +113,14 @@ module Fluent
|
|
112
113
|
->(tag, time, record) {
|
113
114
|
raise InvalidRecordError, record unless record.is_a? Hash
|
114
115
|
raise KeyNotFoundError.new(@data_key, record) if record[@data_key].nil?
|
116
|
+
log.info("record: #{record}")
|
115
117
|
compressor.call(record[@data_key].to_s.b)
|
116
118
|
}
|
117
119
|
end
|
118
120
|
end
|
119
121
|
|
120
122
|
def compressor_create
|
123
|
+
log.info("@compression: #{@compression}")
|
121
124
|
case @compression
|
122
125
|
when "zlib"
|
123
126
|
->(data) { Zlib::Deflate.deflate(data) }
|