fluent-plugin-newrelic 1.2.1 → 1.2.2
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 +4 -4
- data/.github/workflows/pr.yml +2 -3
- data/lib/fluent/plugin/out_newrelic.rb +12 -4
- data/lib/newrelic-fluentd-output/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e1aec84b0acecd97224df4d90924657676365a0973304d1607330e2b8a129a18
|
|
4
|
+
data.tar.gz: 7a320797251e8c232971fd1e9b7934086baad039efcbb0f5a7aaf00a2c373f13
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dd3bc268ebe2eb2b7114ea443f124adbb0b03f9ff93e90cd7bab50c8be6f81f84b90918ae000ba307b5bc43612ac190646c7b877990398f9c41881e33392b986
|
|
7
|
+
data.tar.gz: 6590a2c58766727e7ed93c7e3a68b3b07f7ae21213e4eeeb351eb2e81b09eb54d530678072646f3d39802c20829e0d4c9f9de4430ca2f319c91dd91458f1b587
|
data/.github/workflows/pr.yml
CHANGED
|
@@ -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.
|
|
24
|
+
uses: EnricoMi/publish-unit-test-result-action@v1.19
|
|
25
25
|
if: always()
|
|
26
26
|
with:
|
|
27
|
-
|
|
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
|
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.
|
|
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:
|
|
11
|
+
date: 2023-01-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: fluentd
|