fluent-plugin-dynatrace 0.1.3 → 0.1.4

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: 11015b23549401ef5812fbc636a3da5a2dc1ff200fad51a1c972f9d9cf54d2e1
4
- data.tar.gz: 87a353d50119fe09e3d11a9ce23f6c20c282b31c4a930dba5336a3c05e95e5f4
3
+ metadata.gz: e61b33a2a75ef377666b7982b3fb34060c0d8e3383f2d2386e283b90a4d88202
4
+ data.tar.gz: a80582cc08ca72a4d16ae6fa67f97205934a50e186580395b2bc6b51b8cfa786
5
5
  SHA512:
6
- metadata.gz: 9d8ea643ef564a15584364fcdb28aabf2118cf145f6d4c82301b7441e7986a9f3c7e7e4f4beb93ccdcc7164f60621b96ad238f56531274f72cf5df84dbd74a19
7
- data.tar.gz: cd0ac68b36280801f40da7de3363bb5e0051ff697870fc6cb4390f7100f22dfadf417c0cb6c5be6641fa79f01a8ba5434e01bae21fb43e78bd8d2fb6a81cbd89
6
+ metadata.gz: 32d3f9cdbb42cdc091ed03615553ae9ab99d3101546d97d66e7a1dfb5d80743cbc80db44576299083f2011067827020d0a97543e491216dbf0c65da37d272836
7
+ data.tar.gz: d59fb13eb7d6df92803d2039ab55252bbd83123fbf45d29f9ff9fad2fa5482c92ac2d69421ec5219da4352ab6a9eac753ce5128e895ac9d9e37c322ff52ca631
@@ -20,7 +20,7 @@ module Fluent
20
20
  class DynatraceOutputConstants
21
21
  # The version of the Dynatrace output plugin
22
22
  def self.version
23
- '0.1.3'
23
+ '0.1.4'
24
24
  end
25
25
  end
26
26
  end
@@ -24,6 +24,8 @@ module Fluent
24
24
  class DynatraceOutput < Output
25
25
  Fluent::Plugin.register_output('dynatrace', self)
26
26
 
27
+ HTTP_REQUEST_LOCK = Mutex.new
28
+
27
29
  helpers :compat_parameters # add :inject if need be
28
30
 
29
31
  # Configurations
@@ -115,14 +117,16 @@ module Fluent
115
117
  end
116
118
 
117
119
  def send_to_dynatrace(body)
118
- agent.start unless agent.started?
120
+ HTTP_REQUEST_LOCK.synchronize do
121
+ agent.start unless agent.started?
119
122
 
120
- req = prepare_request(@uri)
121
- res = @agent.request(req, body)
123
+ req = prepare_request(@uri)
124
+ res = @agent.request(req, body)
122
125
 
123
- return if res.is_a?(Net::HTTPSuccess)
126
+ return if res.is_a?(Net::HTTPSuccess)
124
127
 
125
- raise failure_message res
128
+ raise failure_message res
129
+ end
126
130
  end
127
131
 
128
132
  def failure_message(res)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-dynatrace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dynatrace Open Source Engineering
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-08 00:00:00.000000000 Z
11
+ date: 2021-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  requirements: []
127
- rubygems_version: 3.1.4
127
+ rubygems_version: 3.1.6
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: A fluentd output plugin for sending logs to the Dynatrace Generic log ingest