fluent-plugin-scalyr 0.8.15 → 0.8.16
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/VERSION +1 -1
- data/lib/fluent/plugin/out_scalyr.rb +8 -2
- 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: cf7d29d7bd880724b9541793c3b1ee368d47172b88fa919c8ef10c4d8ec9028c
|
|
4
|
+
data.tar.gz: ad42c0dcb664d9d4c9c2417557733dce293b5af51a52978b5a2ab05604515887
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: de05664b8aa2a23c158815c73159fe3466aef2f17697093558407b022becf095b737e05bd23e20bfb3ed1923b41405297b9658f91a6ecb1ae1f943e5022bcebd
|
|
7
|
+
data.tar.gz: 2ec30ad8a9e1a3ebc7ea16080729684117d38033109b7e829a959e11802b909fd14202fd85d248f38f0770b083e5b8b95e25f9a83d8659487d80598ed5c5795b
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.8.
|
|
1
|
+
0.8.16
|
|
@@ -73,6 +73,12 @@ module Scalyr
|
|
|
73
73
|
end
|
|
74
74
|
|
|
75
75
|
def configure(conf)
|
|
76
|
+
@version = if Gem.loaded_specs.key?("fluent-plugin-scalyr")
|
|
77
|
+
Gem.loaded_specs["fluent-plugin-scalyr"].version
|
|
78
|
+
else
|
|
79
|
+
"unknown"
|
|
80
|
+
end
|
|
81
|
+
|
|
76
82
|
if conf.elements("buffer").empty?
|
|
77
83
|
$log.warn "Pre 0.14.0 configuration file detected. Please consider updating your configuration file" # rubocop:disable Layout/LineLength, Lint/RedundantCopDisableDirective
|
|
78
84
|
end
|
|
@@ -146,7 +152,7 @@ module Scalyr
|
|
|
146
152
|
# Generate a session id. This will be called once for each <match> in fluent.conf that uses scalyr
|
|
147
153
|
@session = SecureRandom.uuid
|
|
148
154
|
|
|
149
|
-
$log.info "Scalyr Fluentd Plugin ID id=#{plugin_id} worker=#{fluentd_worker_id} session=#{@session}" # rubocop:disable Layout/LineLength, Lint/RedundantCopDisableDirective
|
|
155
|
+
$log.info "Scalyr Fluentd Plugin ID id=#{plugin_id} worker=#{fluentd_worker_id} session=#{@session} version=#{@version}" # rubocop:disable Layout/LineLength, Lint/RedundantCopDisableDirective
|
|
150
156
|
end
|
|
151
157
|
|
|
152
158
|
def format(tag, time, record)
|
|
@@ -254,8 +260,8 @@ module Scalyr
|
|
|
254
260
|
|
|
255
261
|
post = Net::HTTP::Post.new uri.path
|
|
256
262
|
post.add_field("Content-Type", "application/json")
|
|
257
|
-
|
|
258
263
|
post.add_field("Content-Encoding", encoding) if @compression_type
|
|
264
|
+
post.add_field("User-Agent", "fluent-plugin-scalyr;#{@version}")
|
|
259
265
|
|
|
260
266
|
post.body = body
|
|
261
267
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fluent-plugin-scalyr
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.16
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Imron Alston
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-02-
|
|
11
|
+
date: 2022-02-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ffi
|