diff --git a/lib/datadog/ci/transport/event_platform_transport.rb b/lib/datadog/ci/transport/event_platform_transport.rb index a3ceb482..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 = 5 * 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]