Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SDTEST-1376] set the max payload size for events to 4.5MB #272

Merged
merged 2 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading