fluent-plugin-newrelic 1.1.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6dbed0d5014d5685b57429081cbdc0dc5198f0ecccfe0dc523571efa6ea50ad5
4
- data.tar.gz: f98c59dca5ccdb35c0c3cf0032864177da7ae34342b9e2471d68f6b54a7f6bbf
3
+ metadata.gz: 3ee73ce175fb282dc265d9fb7f6e7fd77070e34239a62296c66317dcb8ab1ffc
4
+ data.tar.gz: 9c68570a7caf8dd62385f0d7077fc21009d8e37436d340a1b47469071d1ff884
5
5
  SHA512:
6
- metadata.gz: 88d7afb9aabd9ab5552bc48fe3aaa06f6dced0dc62e7178c5abefb4bd36e9cd147b9395a582da1f7eec864c5991ca44eb4fc55391db35d447d3e11aa36cd2ad0
7
- data.tar.gz: efcdfef5a81b079e4badf992a6976874142e951ef70e26a872a86b01392f2cbca913ac8ed6117d3519d3d8d078e000d27465e6ddd72846654112bf1799a803c1
6
+ metadata.gz: 854481935c1b820b9c59faaed047d9d1aec1ed28cf39c4dc38271bcc9ad1028c61e1aa6b56e1ee6de35e1ac995a45254ebec92298a56f4312068bd667248a40a
7
+ data.tar.gz: 90c99413df6d425e7d6339abfe6615ee168368d0729722957ca05e779c2459542f2b0c01cec4a9acc3aa424ff2a07026316033594aec71bfa3a404b32da82c9c
@@ -1,5 +1,14 @@
1
1
  # Developing the plugin
2
2
 
3
+ ## Set up
4
+
5
+ As of September 2019, some supported versions of Fluentd uses Ruby 2.1.10p492, so you'll want to use that to
6
+ develop and test with.
7
+
8
+ * Install rbenv
9
+ * Install an old version of Ruby: `rbenv install 2.1.0`
10
+ * Use that older version: `rbenv local 2.1.0`
11
+
3
12
  ## Developing
4
13
 
5
14
  * Install Bundler gem: `gem install bundler`
@@ -18,6 +18,7 @@ require 'net/http'
18
18
  require 'uri'
19
19
  require 'zlib'
20
20
  require 'newrelic-fluentd-output/version'
21
+ require 'yajl'
21
22
 
22
23
  module Fluent
23
24
  module Plugin
@@ -108,9 +109,9 @@ module Fluent
108
109
  end
109
110
  io = StringIO.new
110
111
  gzip = Zlib::GzipWriter.new(io)
111
- gzip << [payload].to_json
112
+ gzip << Yajl.dump([payload])
112
113
  gzip.close
113
- send(io.string)
114
+ send_payload(io.string)
114
115
  end
115
116
 
116
117
  def handle_response(response)
@@ -119,7 +120,7 @@ module Fluent
119
120
  end
120
121
  end
121
122
 
122
- def send(payload)
123
+ def send_payload(payload)
123
124
  http = Net::HTTP.new(@end_point.host, 443)
124
125
  http.use_ssl = true
125
126
  http.verify_mode = OpenSSL::SSL::VERIFY_PEER
@@ -1,3 +1,3 @@
1
1
  module NewrelicFluentdOutput
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-newrelic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - New Relic Logging Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-04 00:00:00.000000000 Z
11
+ date: 2019-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd