logstash-output-azure_service_bus 0.3.5 → 0.3.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f143bc449a2eb5ba96c5744fbbf835612b4e2bf4a3a55bc66636a77da7913dc
4
- data.tar.gz: 61f7366ca88e30e4c8f08320d0b9d625483af5d70d3613641ae4944ae40eb2c1
3
+ metadata.gz: 8ab4c90ed508519341c59e72adc96f862af3ad515b5292d43cb685920873ca17
4
+ data.tar.gz: 9d390bc1e2c38daf8ecde061a136200026a92f5fdfc539433b88d07439ced4a7
5
5
  SHA512:
6
- metadata.gz: 002f1d700b00f56c3c8c446c37f55d483cefbe467d9d654646d7f21ea0b13c86a532a88c555e2686e97284543c4f0f74e65a4087b9d4717f0532e3a54cd8ac09
7
- data.tar.gz: de134b2fc179f46fb2cb941cef151bf08c7daadaf7850368439450b17e14bf314ccf930c6ca8b802b9195bf90062f9a494c576614c1f7f26b1fcec834e8e550f
6
+ metadata.gz: d23e41a6d9aa4792a017b4c4aa917216476f6d769b7c96eb41ce3e8a6e3bbe058e6dfc59557a9bdc46268665f22bba56eef6fdf314de223619870e310c858715
7
+ data.tar.gz: 905cdaa68b575c6508de88f4bd7baf43ddc210b608184714a3d6830a39eccc0aa54bfc67f0820b078bcdee3e88dfb81c286ec7469e308c588d87cca1828223e7
data/README.md CHANGED
@@ -44,4 +44,4 @@ output {
44
44
  ```
45
45
 
46
46
  ## Retry
47
- This plugin will retry sending messages _indefinitely_ if Service Bus times out or returns a [documented bad response](https://docs.microsoft.com/en-us/rest/api/servicebus/send-message-batch#response-codes) (except 400). To avoid idempotence issues, you should enable duplicate detection on the destination queue or topic.
47
+ This plugin will retry sending messages _indefinitely_ if Service Bus times out or returns [certain bad responses](/lib/logstash/outputs/azure_service_bus.rb#L23). To avoid idempotence issues, you should enable duplicate detection on the destination queue or topic.
@@ -18,14 +18,14 @@ class LogStash::Outputs::AzureServiceBus < LogStash::Outputs::Base
18
18
  interval: 1,
19
19
  interval_randomness: 0.5,
20
20
  backoff_factor: 2,
21
- exceptions: [Faraday::ConnectionFailed, Faraday::TimeoutError, Faraday::RetriableResponse, Errno::ECONNRESET],
21
+ exceptions: [Faraday::ConnectionFailed, Faraday::TimeoutError, Faraday::RetriableResponse, Faraday::SSLError],
22
22
  methods: [], # Empty -> all methods
23
- retry_statuses: [401, 403, 404, 410, 429, 500], # https://docs.microsoft.com/en-us/rest/api/servicebus/send-message-batch#response-codes
23
+ retry_statuses: [401, 403, 404, 410, 429, 500, 503], # https://docs.microsoft.com/en-us/rest/api/servicebus/send-message-batch#response-codes
24
24
  retry_block: lambda do |env, _options, _retries, exception|
25
25
  if env.status.nil?
26
- @logger.warn("Problem while sending message(s) to Service Bus: #{exception.inspect}")
26
+ @logger.warn("Problem (#{exception.inspect}) while sending message(s) to Service Bus. Retrying...")
27
27
  else
28
- @logger.warn("Problem while sending message(s) to Service Bus: HTTP #{env.status}")
28
+ @logger.warn("Problem (HTTP #{env.status}) while sending message(s) to Service Bus. Retrying...")
29
29
  if env.status == 401
30
30
  refresh_access_token
31
31
  env.request_headers['Authorization'] = "Bearer #{@access_token}"
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-azure_service_bus'
3
- s.version = '0.3.5'
3
+ s.version = '0.3.8'
4
4
  s.licenses = ['Apache-2.0']
5
5
  s.summary = 'Send Logstash messages to Azure Service Bus.'
6
6
  s.homepage = 'https://github.com/gharryg/logstash-output-azure_service_bus'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-azure_service_bus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harrison Golden
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-19 00:00:00.000000000 Z
11
+ date: 2022-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement