From fbbba0eeeb3bdcc7dd9cb209f31e95d81e68857c Mon Sep 17 00:00:00 2001 From: Andrey Date: Thu, 19 Dec 2024 14:07:06 +0100 Subject: [PATCH 1/2] set the max payload size for events to 4MB --- lib/datadog/ci/transport/event_platform_transport.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/datadog/ci/transport/event_platform_transport.rb b/lib/datadog/ci/transport/event_platform_transport.rb index a3ceb482..d7f2e3df 100644 --- a/lib/datadog/ci/transport/event_platform_transport.rb +++ b/lib/datadog/ci/transport/event_platform_transport.rb @@ -11,7 +11,7 @@ module Datadog module CI module Transport class EventPlatformTransport - DEFAULT_MAX_PAYLOAD_SIZE = 5 * 1024 * 1024 + DEFAULT_MAX_PAYLOAD_SIZE = 4 * 1024 * 1024 attr_reader :api, :max_payload_size From 1978de43d027d65b4f2dfd317526210144148de3 Mon Sep 17 00:00:00 2001 From: Andrey Date: Thu, 19 Dec 2024 14:15:30 +0100 Subject: [PATCH 2/2] set max payload for events to 4.5MB --- lib/datadog/ci/transport/event_platform_transport.rb | 2 +- sig/datadog/ci/transport/event_platform_transport.rbs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/datadog/ci/transport/event_platform_transport.rb b/lib/datadog/ci/transport/event_platform_transport.rb index d7f2e3df..13f42521 100644 --- a/lib/datadog/ci/transport/event_platform_transport.rb +++ b/lib/datadog/ci/transport/event_platform_transport.rb @@ -11,7 +11,7 @@ module Datadog module CI module Transport class EventPlatformTransport - DEFAULT_MAX_PAYLOAD_SIZE = 4 * 1024 * 1024 + DEFAULT_MAX_PAYLOAD_SIZE = 4.5 * 1024 * 1024 attr_reader :api, :max_payload_size diff --git a/sig/datadog/ci/transport/event_platform_transport.rbs b/sig/datadog/ci/transport/event_platform_transport.rbs index ada13d1d..bacdc1df 100644 --- a/sig/datadog/ci/transport/event_platform_transport.rbs +++ b/sig/datadog/ci/transport/event_platform_transport.rbs @@ -2,15 +2,15 @@ module Datadog module CI module Transport class EventPlatformTransport - DEFAULT_MAX_PAYLOAD_SIZE: Integer + DEFAULT_MAX_PAYLOAD_SIZE: Numeric attr_reader api: Datadog::CI::Transport::Api::Base - attr_reader max_payload_size: Integer + attr_reader max_payload_size: Numeric @api: Datadog::CI::Transport::Api::Base - @max_payload_size: Integer + @max_payload_size: Numeric - def initialize: (api: Datadog::CI::Transport::Api::Base, ?max_payload_size: Integer) -> void + def initialize: (api: Datadog::CI::Transport::Api::Base, ?max_payload_size: Numeric) -> void def send_events: (Array[untyped] events) -> ::Array[Datadog::CI::Transport::Adapters::Net::Response]