Skip to content

fix(oxygen-sdk): document event sending and align event sending logic with other edge sdks - #1844

Open
joker23 wants to merge 1 commit into
mainfrom
skz/sdk-2863/oxygen-event-sending
Open

fix(oxygen-sdk): document event sending and align event sending logic with other edge sdks#1844
joker23 wants to merge 1 commit into
mainfrom
skz/sdk-2863/oxygen-event-sending

Conversation

@joker23

@joker23 joker23 commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

This PR will align the event sending configurations for Oxygen SDK with the other edge sdks:

  • allow sendEvent option
  • configure disableBackgroundEventFlush to true

This PR also adds more documentation and comments to clarify event sending behavior and options.


Note

Low Risk
Changes are limited to the Oxygen SDK’s event-delivery model and documentation; they mirror the existing Fastly edge pattern and do not touch shared auth or data paths.

Overview
Aligns the Shopify Oxygen SDK with other edge runtimes by passing disableBackgroundEventFlush: true into the server client so periodic flush timers are not started when each request spins up its own client.

OxygenLDOptions now officially includes sendEvents, and the README explains the per-request lifecycle: optional await ldClient.flush() before returning (required for analytics delivery), that skipping flush discards buffered events, and that close() does not flush.

Adds a unit test that mocks EventProcessor and asserts the processor is constructed with background flush disabled, plus clearer comments on Oxygen-specific defaults.

Reviewed by Cursor Bugbot for commit 6f3b484. Bugbot is set up for automated code reviews on this repo. Configure here.

@joker23
joker23 marked this pull request as ready for review August 7, 2026 14:24
@joker23
joker23 requested a review from a team as a code owner August 7, 2026 14:24
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

@launchdarkly/js-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 26360 bytes
Compressed size limit: 29000
Uncompressed size: 129188 bytes

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

@launchdarkly/js-client-sdk-common size report
This is the brotli compressed size of the ESM build.
Compressed size: 39099 bytes
Compressed size limit: 39300
Uncompressed size: 213748 bytes

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

@launchdarkly/js-client-sdk size report
This is the brotli compressed size of the ESM build.
Compressed size: 32142 bytes
Compressed size limit: 34000
Uncompressed size: 114604 bytes

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

@launchdarkly/browser size report
This is the brotli compressed size of the ESM build.
Compressed size: 179980 bytes
Compressed size limit: 200000
Uncompressed size: 831788 bytes

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

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.

1 participant