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

fix(analytics): add options for configuring pinpoint event buffer #12521

Merged
merged 4 commits into from
Nov 8, 2023

Conversation

5d
Copy link
Member

@5d 5d commented Nov 6, 2023

Description of changes

  • add EventBufferConfig options to PinpointProviderConfig

Issue #, if available

Description of how you validated changes

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@5d 5d force-pushed the 5d/pinpoint-buffer-options branch from d2b1d90 to c1d8737 Compare November 6, 2023 23:27
@5d 5d marked this pull request as ready for review November 6, 2023 23:44
@5d 5d requested review from a team as code owners November 6, 2023 23:44
Copy link
Contributor

@jimblanc jimblanc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines +28 to +31
bufferSize,
flushInterval,
flushSize,
resendLimit,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what happens with the default values?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As some of the API implementations relies on the value of these options (e.g. resentLimit in record API), they've been already resolved before getEventBuffer. The options in getEventBuffer function are non-optional.

Copy link
Contributor

@elorzafe elorzafe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

Thanks @5d 🎖️

@jimblanc jimblanc merged commit 5b52c3a into main Nov 8, 2023
28 checks passed
@5d 5d deleted the 5d/pinpoint-buffer-options branch November 8, 2023 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants