fluent-plugin-rabbitmq 0.0.4 → 0.0.5

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: 7dfc75a45234c10a10e6246e156988c0cc4e19d7ad8d60fd79854d19e06fd39b
4
- data.tar.gz: c46e74385fd360275a09a22b749d58794c2f7587aed4c1ad74715d9d5ae55d5c
3
+ metadata.gz: 4d2862045bd52ab3ffede55b32f2cc7c647bf8bd3542587119583df1a705de83
4
+ data.tar.gz: f9d540ed910f388a94f1a8dc4b4be809c60a417e7b3d06f693c4d1ff17f1adb0
5
5
  SHA512:
6
- metadata.gz: fc8e5e837e33d65fdd794e514f7d21919e9c743175eab575780806d0ac35ab3bc1afe21a51a661be47442fbe93cb1378c26b7d42157402f4cc977248a51aef7e
7
- data.tar.gz: 992f9faa7efd9447198dc2ce11c47b2244242a35da31bfc15188f68e427928ac45c492a65b35cdbb7d5fef401c2ad95f2ea063302940716fcdf216e7f5326622
6
+ metadata.gz: bc87a28220cbbc8bea682edccaa93075b4cae213453673eaed593e27470ed330359dcd2b4a924256987e4706265b763eeebc624cf0e99366b21ebdf50dc2021d
7
+ data.tar.gz: fcdb0456520efc73a6309c6e05dac06155754461f6867e8d2b44cec9400be7430adb37e4e47dfed21dca9c2217b3b13127134924e0a39970a73c8eccb8caf864
data/README.md CHANGED
@@ -46,6 +46,8 @@ fluentd >= 0.14.0
46
46
  |auto_delete|true|false|set auto_delete flag of the queue|
47
47
  |prefetch_count|10|nil||
48
48
  |consumer_pool_size|5|nil||
49
+ |include_headers|true|false|include headers in events|
50
+ |headers_key|string|header|key name of headers|
49
51
 
50
52
  ### Output
51
53
 
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = "fluent-plugin-rabbitmq"
6
- spec.version = "0.0.4"
6
+ spec.version = "0.0.5"
7
7
  spec.authors = ["NTT Communications"]
8
8
  spec.email = ["masaki.matsushita@ntt.com"]
9
9
 
@@ -23,5 +23,5 @@ Gem::Specification.new do |spec|
23
23
 
24
24
  spec.add_runtime_dependency "fluentd", ">= 0.14.0"
25
25
 
26
- spec.add_dependency "bunny", "~> 2.9.2"
26
+ spec.add_dependency "bunny", "~> 2.13.0"
27
27
  end
@@ -60,6 +60,9 @@ module Fluent::Plugin
60
60
 
61
61
  config_param :prefetch_count, :integer, default: nil
62
62
 
63
+ config_param :include_headers, :bool, default: false
64
+ config_param :headers_key, :string, default: "headers"
65
+
63
66
  def initialize
64
67
  super
65
68
  require "bunny"
@@ -119,6 +122,9 @@ module Fluent::Plugin
119
122
  else
120
123
  time
121
124
  end
125
+ if @include_headers
126
+ record[@headers_key] = properties.headers
127
+ end
122
128
  router.emit(@tag, time, record)
123
129
  end
124
130
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-rabbitmq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - NTT Communications
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-26 00:00:00.000000000 Z
11
+ date: 2019-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 2.9.2
103
+ version: 2.13.0
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 2.9.2
110
+ version: 2.13.0
111
111
  description: fluent plugin for rabbitmq (AMQP)
112
112
  email:
113
113
  - masaki.matsushita@ntt.com
@@ -144,8 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  requirements: []
147
- rubyforge_project:
148
- rubygems_version: 2.7.7
147
+ rubygems_version: 3.0.2
149
148
  signing_key:
150
149
  specification_version: 4
151
150
  summary: fluent plugin for rabbitmq (AMQP)