Skip to content

Add buffer_size to Product Analytics SDK client args for performance

Piotr Skorupa requested to merge psk-add-buffer-size-to-internal-events into master

What does this MR do and why?

Related to #432640 (closed) and #436447 (closed).

This adds buffer_size of 100 to Snowplow events being sent by the Internal Events framework to Product Analytics for performance reasons.

Currently, every event is sent in its own request, but with this argument passed, the events will be batched and sent in a single POST request only after there are enough events in the buffer.

All changes in this MR are fully behind the internal_events_for_product_analytics feature flag.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Piotr Skorupa

Merge request reports