Skip to content

Commit

Permalink
Merge pull request #272 from DataDog/anmarchenko/lower_max_payload_si…
Browse files Browse the repository at this point in the history
…ze_for_intake

[SDTEST-1376] set the max payload size for events to 4.5MB
  • Loading branch information
anmarchenko authored Dec 19, 2024
2 parents 90ae652 + 1978de4 commit 796ece0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/datadog/ci/transport/event_platform_transport.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions sig/datadog/ci/transport/event_platform_transport.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit 796ece0

Please sign in to comment.