Skip to content

[RUM-9773] Fix - Missing js_refresh_rate Metrics After Upgrading to 2.6.4#872

Merged
sbarrio merged 1 commit into
developfrom
sbarrio/RUM-9773/fix_js_refresh_rate_missing
May 14, 2025
Merged

[RUM-9773] Fix - Missing js_refresh_rate Metrics After Upgrading to 2.6.4#872
sbarrio merged 1 commit into
developfrom
sbarrio/RUM-9773/fix_js_refresh_rate_missing

Conversation

@sbarrio
Copy link
Copy Markdown
Contributor

@sbarrio sbarrio commented May 12, 2025

What does this PR do?

Starting from 2.6.4, the synthesized bridge variable on DdSdk.mm started being nil. This value was then provided to initialize DdSdkImplmenentation, which then caused issues down the line, one of the being that the js_refresh_rate metric stopped being sent as part of the view data payload.

This PR introduces a settter that will be called when instantianing DdSdk.mm, ensuring that bridge is allocated and initialized by the time DdSdkImplementation is also created.

Motivation

We stop reported the js_refresh_rate metric from 2.64 through 2.7.0.

Additional Notes

This issue was inadvertently fixed as well by this PR #864. This PR builds on top of that and basically cleans up and renames a few things for clarity.

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

static __weak RCTBridge *_bridge = nil;

- (void)setBridge:(RCTBridge *)bridge {
[super setBridge:bridge];
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

By being explicit about this we ensure that this setter does not get removed nor lost again.

@sbarrio sbarrio marked this pull request as ready for review May 12, 2025 18:38
@sbarrio sbarrio requested a review from a team as a code owner May 12, 2025 18:38
@sbarrio sbarrio self-assigned this May 12, 2025
@sbarrio sbarrio merged commit 0191712 into develop May 14, 2025
8 checks passed
@sbarrio sbarrio deleted the sbarrio/RUM-9773/fix_js_refresh_rate_missing branch May 14, 2025 07:35
@sbarrio sbarrio mentioned this pull request May 14, 2025
4 tasks
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.

2 participants