fluent-plugin-scalyr 0.8.15 → 0.8.16

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: b707a6d76dc806731c45f6a96915936e559c49c79e873c3c5ea5dce4ffbaf288
4
- data.tar.gz: a328a42722469673e69d9e7a77e84c65cb1f7235a566076a1316216937a54405
3
+ metadata.gz: cf7d29d7bd880724b9541793c3b1ee368d47172b88fa919c8ef10c4d8ec9028c
4
+ data.tar.gz: ad42c0dcb664d9d4c9c2417557733dce293b5af51a52978b5a2ab05604515887
5
5
  SHA512:
6
- metadata.gz: fad3abf458ae0f215f7a29ca3aa4cc167d05811e270c3eace46057ce291307f3b76ef8c13c269b8c43b4564909001e2421dd6ef591188e52c6ed44c22a5ef946
7
- data.tar.gz: b8a3268ce7d4d71178ea3356ba47ffd9247cbe3c55d49d436916868076710c4f66719266235d926e314b936bed5544a92de6afdad93a0b33be5d4d0fe0d473cb
6
+ metadata.gz: de05664b8aa2a23c158815c73159fe3466aef2f17697093558407b022becf095b737e05bd23e20bfb3ed1923b41405297b9658f91a6ecb1ae1f943e5022bcebd
7
+ data.tar.gz: 2ec30ad8a9e1a3ebc7ea16080729684117d38033109b7e829a959e11802b909fd14202fd85d248f38f0770b083e5b8b95e25f9a83d8659487d80598ed5c5795b
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.15
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.15
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-03 00:00:00.000000000 Z
11
+ date: 2022-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi