logstash-output-dynatrace 0.7.2 → 0.8.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: 6dc320145268685ae7585b0ffc68beb54ae932b3e9c5261e1ca6106803c487df
4
- data.tar.gz: 223b65b82ffc6ed512d270eb879126a9f9fbe046f9dfc9e66ae9a37be2e60fcf
3
+ metadata.gz: d6854ef3745f76258a310201110f0ad2c4eb584f5eaeb1a947b90bdaddcefd28
4
+ data.tar.gz: 8a9e2c1477a26137756bc7a1a2e0356d3ddc85f070553a7543db10c74f960dc1
5
5
  SHA512:
6
- metadata.gz: 55a4b11c59aae913134c5972dff31b13c3e3eaa8761db6703a88e081df6d369b39d6be5f924219e30312b819a54c30d7aced19d98b24f6bcf4e988561929ce50
7
- data.tar.gz: 401c4c51154584cee22c94f557a5869b8782759b5287498571e2f1ae345150f48625417126140bb54676560a3d75f7659b30ca392b2db2470dae7815b49904d2
6
+ metadata.gz: fb86589466be40fe1483c96bf4ec626272cfa1fbe11b7a6105d8a347af3a821ede7800f0c56d300272223d0ec862d60fb090ef5310c9fde29a0c908d9e73bc0d
7
+ data.tar.gz: d40f8eb38fc24a574af1c876be615f36e81bfdf3e249a27b1d294504ce4e4717a44ae48106f1ef0c5ae2cd19d5e828aa2627dc88a7a26044e6edbb5ff5f781bf
data/README.md CHANGED
@@ -109,6 +109,15 @@ This option may be required if you are using a self-signed certificate, an expir
109
109
  > NOTE: Starting in plugin version `0.5.0`, this option has no effect in versions of Logstash older than `8.1.0`.
110
110
  > If this functionality is required, it is recommended to update Logstash or stay at plugin version `0.4.x` or older.
111
111
 
112
+ ### `max_payload_size`
113
+
114
+ * Value type is [number](https://www.elastic.co/docs/reference/logstash/configuration-file-structure#number)
115
+ * Optional
116
+ * Default value is `9_500_000`
117
+
118
+ It is recommended **not** to set this optional configuration unless you have a specific reason to do so.
119
+ If you, for example, are using a proxy with a payload size limit, this configuration can be used to reduce the maximum size batch that is sent to the server.
120
+
112
121
  ### `proxy`
113
122
 
114
123
  * Value type is [string](https://www.elastic.co/guide/en/logstash/current/configuration-file-structure.html#string) or [hash](https://www.elastic.co/guide/en/logstash/current/configuration-file-structure.html#hash)
@@ -76,7 +76,7 @@ module LogStash
76
76
  config :debug_include_body, validate: :boolean, default: false
77
77
 
78
78
  # Maximum size payload to send to the Dynatrace API in Bytes. Batches of events which would be larger than max_payload_size when serialized will be split into smaller batches of events.
79
- config :max_payload_size, validate: :number, default: 4_500_000
79
+ config :max_payload_size, validate: :number, default: 9_500_000
80
80
 
81
81
  # Disable cookie support. Overridden default value from LogStash::PluginMixins::HttpClient
82
82
  config :cookies, :validate => :boolean, :default => false
@@ -201,17 +201,6 @@ describe LogStash::Outputs::Dynatrace do
201
201
  end
202
202
  end
203
203
 
204
- context 'with more than 4.5MB of events' do
205
- before do
206
- allow(subject).to receive(:send_event) { |e, att| [:success, e, att] }
207
- subject.multi_receive([1, 2].map { |n| LogStash::Event.new({ 'n' => n.to_s * 2_500_001 }) })
208
- end
209
-
210
- it 'should split the chunk into multiple requests' do
211
- expect(subject).to have_received(:send_event).exactly(2).times
212
- end
213
- end
214
-
215
204
  shared_examples('send small and drop large') do
216
205
  it 'should only send the small event' do
217
206
  expect(subject).to have_received(:send_event).exactly(1).times
@@ -223,26 +212,6 @@ describe LogStash::Outputs::Dynatrace do
223
212
  .exactly(:once)
224
213
  end
225
214
  end
226
-
227
- context 'with one small event and one too large event' do
228
- before do
229
- allow(subject).to receive(:send_event) { |e, att| [:success, e, att] }
230
- subject.multi_receive([LogStash::Event.new({ 'event' => 'small' }),
231
- LogStash::Event.new({ 'event' => 'n' * 4_500_001 })])
232
- end
233
-
234
- include_examples('send small and drop large')
235
- end
236
-
237
- context 'with one too large event and one small event' do
238
- before do
239
- allow(subject).to receive(:send_event) { |e, att| [:success, e, att] }
240
- subject.multi_receive([LogStash::Event.new({ 'event' => 'n' * 4_500_001 }),
241
- LogStash::Event.new({ 'event' => 'small' })])
242
- end
243
-
244
- include_examples('send small and drop large')
245
- end
246
215
  end
247
216
 
248
217
  context 'max_payload_size 500' do
data/version.yaml CHANGED
@@ -1 +1 @@
1
- logstash-output-dynatrace: '0.7.2'
1
+ logstash-output-dynatrace: '0.8.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.7.2
4
+ version: 0.8.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-06 00:00:00.000000000 Z
11
+ date: 2025-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstash-codec-json