fluent-plugin-newrelic 1.2.1 → 1.2.2

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: 11df01d6cf7ef5b768dabccfc1d57f0aa7bf3bbd96010ab0d9109b0dae65434e
4
- data.tar.gz: bd8b44e862c08b809fb7ad08913d679dca2ff13d3029dca8c6c31656fa317676
3
+ metadata.gz: e1aec84b0acecd97224df4d90924657676365a0973304d1607330e2b8a129a18
4
+ data.tar.gz: 7a320797251e8c232971fd1e9b7934086baad039efcbb0f5a7aaf00a2c373f13
5
5
  SHA512:
6
- metadata.gz: 2f5b0a413c051418c0635352cac3bbac7b039c00c4fef14d694cd3a531111e07f85dc9f44d87641b774cc00869a51574e161644b3fc3392c257284e0342aeead
7
- data.tar.gz: b8da217e0801af5053fad0539680348e5e94eeec56ddf4a67872c63afd968c53647ba2cde5b98424392b2104675298ee62a29e74bbc41d5790a0aad9911c23b7
6
+ metadata.gz: dd3bc268ebe2eb2b7114ea443f124adbb0b03f9ff93e90cd7bab50c8be6f81f84b90918ae000ba307b5bc43612ac190646c7b877990398f9c41881e33392b986
7
+ data.tar.gz: 6590a2c58766727e7ed93c7e3a68b3b07f7ae21213e4eeeb351eb2e81b09eb54d530678072646f3d39802c20829e0d4c9f9de4430ca2f319c91dd91458f1b587
@@ -21,8 +21,7 @@ jobs:
21
21
  run: bundle exec rake
22
22
 
23
23
  - name: Publish Unit Test Results
24
- uses: EnricoMi/publish-unit-test-result-action@v1.5
24
+ uses: EnricoMi/publish-unit-test-result-action@v1.19
25
25
  if: always()
26
26
  with:
27
- github_token: ${{ secrets.GITHUB_TOKEN }}
28
- files: '**/TEST-*.xml'
27
+ files: '**/TEST-*.xml'
@@ -75,11 +75,8 @@ module Fluent
75
75
  end
76
76
 
77
77
  def package_record(record, timestamp)
78
- if defined? timestamp.nsec
79
- timestamp = timestamp * 1000 + timestamp.nsec / 1_000_000
80
- end
81
78
  packaged = {
82
- 'timestamp' => timestamp,
79
+ 'timestamp' => resolveTimestamp(record['timestamp'], timestamp),
83
80
  # non-intrinsic attributes get put into 'attributes'
84
81
  'attributes' => record
85
82
  }
@@ -181,6 +178,17 @@ module Fluent
181
178
  gzip.close
182
179
  io.string
183
180
  end
181
+
182
+ def resolveTimestamp(recordTimestamp, fluentdTimestamp)
183
+ if recordTimestamp
184
+ recordTimestamp
185
+ else
186
+ if defined? fluentdTimestamp.nsec
187
+ fluentdTimestamp = fluentdTimestamp * 1000 + fluentdTimestamp.nsec / 1_000_000
188
+ end
189
+ fluentdTimestamp
190
+ end
191
+ end
184
192
  end
185
193
  end
186
194
  end
@@ -1,3 +1,3 @@
1
1
  module NewrelicFluentdOutput
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
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.1
4
+ version: 1.2.2
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: 2021-07-30 00:00:00.000000000 Z
11
+ date: 2023-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd