logstash-output-dynatrace 0.8.0 → 0.9.0

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: d6854ef3745f76258a310201110f0ad2c4eb584f5eaeb1a947b90bdaddcefd28
4
- data.tar.gz: 8a9e2c1477a26137756bc7a1a2e0356d3ddc85f070553a7543db10c74f960dc1
3
+ metadata.gz: 1bb71f202f531a1a121532e45f818febc0f88199d57255b59b5cb939d519710a
4
+ data.tar.gz: 43a00991c9e55c6758486add2a6d34ab1f46a9cac9416796d9f0ab52b41feecb
5
5
  SHA512:
6
- metadata.gz: fb86589466be40fe1483c96bf4ec626272cfa1fbe11b7a6105d8a347af3a821ede7800f0c56d300272223d0ec862d60fb090ef5310c9fde29a0c908d9e73bc0d
7
- data.tar.gz: d40f8eb38fc24a574af1c876be615f36e81bfdf3e249a27b1d294504ce4e4717a44ae48106f1ef0c5ae2cd19d5e828aa2627dc88a7a26044e6edbb5ff5f781bf
6
+ metadata.gz: 98192fdeff3b6f84bc3f3b677fee77cf1d8bc8367bf2955feabca1a702cfd024ff08c8f4f2a8a37262574df5ec5077156d1f9bd3f229c8a72a1e0d43b6a2a16c
7
+ data.tar.gz: 8b671730fa910fe072a14ab08c76eb8f9ff249c6e3444a8375bb499a37bd165b5a9cd97966cffbd08ec84c2df50f6105b884974880df414b65fd367d6bc801fc
data/README.md CHANGED
@@ -177,6 +177,9 @@ in order to isolate problems caused by only the Dynatrace output plugin.
177
177
 
178
178
  See <https://www.elastic.co/guide/en/logstash/current/logging.html#logging>.
179
179
 
180
+ The plugin will output some debug log messages, including the number of log lines received, which should help
181
+ with debugging.
182
+
180
183
  You can enable debug logging in one of several ways:
181
184
 
182
185
  - Use the `--log.level debug` command line flag
@@ -95,6 +95,8 @@ module LogStash
95
95
  end
96
96
 
97
97
  def multi_receive(events)
98
+ log_debug('Trying to send logs to Dynatrace', event_count: events.length)
99
+
98
100
  return if events.empty?
99
101
 
100
102
  send_events(events)
@@ -352,6 +354,11 @@ module LogStash
352
354
  @logger.warn(message, opts)
353
355
  end
354
356
 
357
+ # This is split into a separate method mostly to help testing
358
+ def log_debug(message, opts)
359
+ @logger.debug? && @logger.debug(message, opts)
360
+ end
361
+
355
362
  # gzip data
356
363
  def gzip(data)
357
364
  gz = StringIO.new
@@ -66,6 +66,10 @@ describe LogStash::Outputs::Dynatrace do
66
66
  expect(subject).to have_received(:log_failure).with(anything, hash_including(:backtrace))
67
67
  end
68
68
 
69
+ it 'logs a debug message' do
70
+ expect(subject).to have_received(:log_debug).with(any_args)
71
+ end
72
+
69
73
  context 'with debug_include_headers false (default)' do
70
74
  it 'does not log headers' do
71
75
  expect(subject).to have_received(:log_failure).with(anything, hash_not_including(:headers))
@@ -124,6 +128,7 @@ describe LogStash::Outputs::Dynatrace do
124
128
  .and_call_original
125
129
  allow(subject).to receive(:log_failure).with(any_args)
126
130
  allow(subject).to receive(:log_warning).with(any_args)
131
+ allow(subject).to receive(:log_debug).with(any_args)
127
132
  allow(subject).to receive(:log_retryable_response).with(any_args)
128
133
  end
129
134
 
data/version.yaml CHANGED
@@ -1 +1 @@
1
- logstash-output-dynatrace: '0.8.0'
1
+ logstash-output-dynatrace: '0.9.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-dynatrace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
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: 2025-05-15 00:00:00.000000000 Z
11
+ date: 2025-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstash-codec-json