fluent-plugin-newrelic 1.2.2 → 1.2.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: e1aec84b0acecd97224df4d90924657676365a0973304d1607330e2b8a129a18
4
- data.tar.gz: 7a320797251e8c232971fd1e9b7934086baad039efcbb0f5a7aaf00a2c373f13
3
+ metadata.gz: d4be95038976a5e5e708c6fdc9d733a7293aaf63461fb67378f953cc093df633
4
+ data.tar.gz: 9cc28ceaa43fbaf330c631a2614ba911802bf442ac540b27b2ff23d58cadab2c
5
5
  SHA512:
6
- metadata.gz: dd3bc268ebe2eb2b7114ea443f124adbb0b03f9ff93e90cd7bab50c8be6f81f84b90918ae000ba307b5bc43612ac190646c7b877990398f9c41881e33392b986
7
- data.tar.gz: 6590a2c58766727e7ed93c7e3a68b3b07f7ae21213e4eeeb351eb2e81b09eb54d530678072646f3d39802c20829e0d4c9f9de4430ca2f319c91dd91458f1b587
6
+ metadata.gz: 27e2a425b516c5570c81b9680f1357e5fe27f9f9ebcbf885eeee6f30bd8402cc8d962b0fad3a7984a83e0528e1e17213a56421ccbeb83000408b122bbae52ac0
7
+ data.tar.gz: 6bc8cab7df418903885686e1da65f8de0e0704061af18f6fcf389d88b40be9eeed9bd48d55372c1ffac109f38c8633013541dedeb2b8bd2384922411dca7e810
@@ -8,7 +8,7 @@ on:
8
8
  jobs:
9
9
  ci:
10
10
  name: Continuous Delivery pipeline
11
- runs-on: ubuntu-18.04
11
+ runs-on: ubuntu-20.04
12
12
 
13
13
  steps:
14
14
  - name: Checkout code
@@ -5,7 +5,7 @@ on: [pull_request]
5
5
  jobs:
6
6
  ci:
7
7
  name: Continuous Integration pipeline
8
- runs-on: ubuntu-18.04
8
+ runs-on: ubuntu-20.04
9
9
 
10
10
  steps:
11
11
  - name: Checkout code
@@ -138,6 +138,7 @@ module Fluent
138
138
  return [compressed_payload]
139
139
  end
140
140
 
141
+ compressed_payload_bytesize = compressed_payload.bytesize
141
142
  compressed_payload = nil # Free for GC
142
143
 
143
144
  if logs.length > 1 # we can split
@@ -147,7 +148,8 @@ module Fluent
147
148
  second_half = get_compressed_payloads(logs.slice(midpoint, logs.length))
148
149
  return first_half + second_half
149
150
  else
150
- log.error("Can't compress record below required maximum packet size and it will be discarded. Record: #{logs[0]}")
151
+ log.error("Can't compress record below required maximum packet size and it will be discarded. " +
152
+ "Record timestamp: #{logs[0]['timestamp']}. Compressed size: #{compressed_payload_bytesize} bytes. Uncompressed size: #{payload.to_json.bytesize} bytes.")
151
153
  return []
152
154
  end
153
155
  end
@@ -1,3 +1,3 @@
1
1
  module NewrelicFluentdOutput
2
- VERSION = "1.2.2"
2
+ VERSION = "1.2.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.2.2
4
+ version: 1.2.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: 2023-01-17 00:00:00.000000000 Z
11
+ date: 2024-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd