Skip to content

[RUM-20335] Add Vega SDK package - #1550

Open
cdn34dd wants to merge 5 commits into
developfrom
carlosnogueira/RUM-20035/add-vega-sdk-package
Open

cdn34dd wants to merge 5 commits into
developfrom
carlosnogueira/RUM-20035/add-vega-sdk-package

Conversation

@cdn34dd

@cdn34dd cdn34dd commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

Adds the private @datadog/mobile-react-native-vega package with a Kepler native bridge backed by Datadog C++ SDK 0.7.0. (This will be updated for the final release)

  • Adds native build configuration, shared state, attribute conversion, and enum helpers.
  • Routes native uploads through JavaScript fetch and returns responses to the upload thread.
  • Adds filtering helpers to exclude SDK uploads from automatic RUM resource tracking.
  • Handles unavailable native modules, transport startup failures, and emitter teardown.
  • Adds example-vega/ and native build artifacts to the ignore rules.

Motivation

Vega needs a Kepler bridge and an HTTP transport compatible with its runtime. This provides the native foundation for Datadog support while keeping the package private during development.

Additional Notes

SDK initialization and RUM/logging APIs are outside this PR’s scope. The package adds @amazon-devices/keplerscript-turbomodule-api 1.2.5.

Transport startup must be awaited before starting native uploads.

Validation:

  • All 14 JavaScript tests pass:
    yarn workspace @datadog/mobile-react-native-vega test --runInBand --watchman=false
  • Host C++ transport tests pass, including teardown concurrency coverage:
    yarn workspace @datadog/mobile-react-native-vega test:native
  • Release native builds pass for aarch64, armv7, and x86_64 using the Vega toolchain.
  • yarn lint and yarn prepare pass.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)
  • If this PR is auto-generated, please make sure also to manually update the code related to the change

@cdn34dd

cdn34dd commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator Author

@cursor review

@cursor

cursor Bot commented Nov 18, 2026

Copy link
Copy Markdown

Skipping Bugbot: Bugbot is disabled for this repository. Visit the Bugbot dashboard to update your settings.

cursor[bot]

This comment was marked as outdated.

@cdn34dd
cdn34dd force-pushed the carlosnogueira/RUM-20035/add-vega-sdk-package branch from f3ae699 to b16f0b6 Compare November 23, 2026 15:42
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

@cdn34dd
cdn34dd marked this pull request as ready for review November 23, 2026 18:21
@cdn34dd
cdn34dd requested review from a team as code owners November 23, 2026 18:21
Copilot AI balanced review requested due to automatic review settings November 23, 2026 18:21
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T18:43:43.415730Z 9360b2d New commits
🔒 Security Review ✅ Completed 2026-11-23T18:46:08.537724Z 9360b2d New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e3f87b0d7b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@cdn34dd

cdn34dd commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator Author

Some of the issues mentioned here will be addressed on follow-up PRs.

@datadog-prod-us1-4 datadog-prod-us1-4 Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bits Code Review: PASS

More details

The completed static review raised no actionable findings. Vega runtime compatibility remains unverified because JavaScript dependencies and the Vega toolchain were unavailable.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit e3f87b0

This comment was marked as outdated.

Copilot AI balanced review requested due to automatic review settings November 23, 2026 18:42

Copilot AI 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.

🔵 Needs a closer look

Maintainer review and real Kepler/Vega runtime validation are still needed because mocked JS and host-only tests leave emitter delivery, XHR-backed fetch suppression, and teardown unverified.

No open issues 🎉

3 resolved since last review

Review effort: Balanced

cursor[bot]

This comment was marked as outdated.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

PR Review — Quality: 5.0 / 5 · Review load: Broad (~2–3h)

Shared proxy state and the upload deadline behave as intended. The 3.13.0-beta package version is an intentional difference for this private package, so this is ready to merge as-is.

Customer impact: Low — private @datadog/mobile-react-native-vega only. Vega apps that load two copies of the package share one upload session and one resource-tracking exclusion. A fetch still pending at 25 seconds, or stopped while in flight, is reported as retryable and the batch is kept. iOS and Android collection stays on the current path.

Concern
JS↔native HTTP transport session (startup, response, cancellation, deadline, shared lifecycle) Risky
Excluding SDK uploads from core Fetch and XHR resource tracking Risky
Vega package version (3.13.0-beta, kept by update-version.sh) Routine

Assessment: getGlobalInstance stores the lifecycle and the fetch-proxy depths on globalThis, so a second package copy replaces the listener instead of posting the upload twice, and callWithoutResourceTracking still excludes only the synchronous fetch start. In HttpJsProxy.cpp, status 0, cancellation, and the native 30-second wait all return retryable. The new Jest tests cover one listener across copies, a single httpResponse after a late settlement, and timer removal. The beta suffix is the intended private-package version, and AGENTS.md records that exception.

Review load — Broad (~2–3h): The upload-thread session and the core fetch exclusion are one private package plus a small core change. Review them together. The separate beta version is intentional.

This run assessed the delta since e3f87b0 and revalidated the earlier findings. The previous 4.0 score counted the beta suffix; that difference is intended and is not a finding.

Open in Web View Automation 

Sent by Cursor Automation: dd-sdk-react-native reviews

@datadog-prod-us1-4

datadog-prod-us1-4 Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Pipelines  Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 9360b2d | Docs | View more details | Give us feedback!

@maciejburda
maciejburda requested a review from sbarrio November 23, 2026 22:53
@cdn34dd cdn34dd changed the title [RUM-20035] Add Vega SDK package [RUM-20335] Add Vega SDK package Nov 24, 2026

This branch has not been deployed

No deployments
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