Skip to content

Conversation

@marco-saia-datadog
Copy link
Member

What does this PR do?

This PR updates the datadog-sourcemaps.gradle script to add an additional step that ensures the Debug ID is preserved during source map composition.

The Debug ID is automatically copied from the packager generated source map to the Hermes composed source map, as the property is lost during the composition process.

To support this, a new JavaScript utility script has been introduced at ./packages/core/scripts/copy-debug-id.js, which performs the actual copy of the JSON property from one file to the other.

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

@datadog-datadog-prod-us1
Copy link

datadog-datadog-prod-us1 bot commented Apr 29, 2025

Datadog Report

Branch report: marcosaia/RUM-9615/copy-debug-id-in-composed-sourcemap
Commit report: 7d35690
Test service: dd-sdk-reactnative

✅ 0 Failed, 663 Passed, 1 Skipped, 5.27s Total Time

@marco-saia-datadog marco-saia-datadog force-pushed the marcosaia/RUM-9615/copy-debug-id-in-composed-sourcemap branch from 5903f09 to a816075 Compare April 29, 2025 10:21
@marco-saia-datadog marco-saia-datadog added the Do not merge This PR is not ready to be merged yet label Apr 29, 2025
@marco-saia-datadog marco-saia-datadog marked this pull request as ready for review April 29, 2025 14:31
@marco-saia-datadog marco-saia-datadog requested a review from a team as a code owner April 29, 2025 14:31
@marco-saia-datadog marco-saia-datadog force-pushed the marcosaia/RUM-9615/copy-debug-id-in-composed-sourcemap branch from a816075 to 2db6428 Compare June 18, 2025 08:41
@marco-saia-datadog marco-saia-datadog force-pushed the marcosaia/RUM-9615/copy-debug-id-in-composed-sourcemap branch from 2db6428 to 7d35690 Compare June 18, 2025 08:44
@marco-saia-datadog marco-saia-datadog requested review from a team, cdn34dd and sbarrio June 18, 2025 08:44
@marco-saia-datadog marco-saia-datadog removed the Do not merge This PR is not ready to be merged yet label Jun 18, 2025
@marco-saia-datadog marco-saia-datadog merged commit 80cf099 into develop Jun 19, 2025
10 checks passed
@marco-saia-datadog marco-saia-datadog deleted the marcosaia/RUM-9615/copy-debug-id-in-composed-sourcemap branch June 19, 2025 11:59
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.

4 participants