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

RUM-5841 feat(view-loading-api): implement addViewLoadingTime API #2026

Merged
merged 6 commits into from
Sep 2, 2024

Conversation

ganeshnj
Copy link
Contributor

@ganeshnj ganeshnj commented Aug 27, 2024

What and why?

https://datadoghq.atlassian.net/wiki/spaces/RUMP/pages/3951001790/RFC+View+loading+time+manual+API

How?

This PR follows the RFC and introduces addViewLoadingTime API. The implementation follows the existing command pattern and updates the RUMViewEvent.view.loading when called which also triggers the view update.

This PR doesn't introduce any telemetry which will be added in upcoming PRs. We will require #2019 to merged as prerequisite.

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)
  • Make sure each commit and the PR mention the Issue number or JIRA reference
  • Add CHANGELOG entry for user facing changes

@ganeshnj ganeshnj force-pushed the ganeshnj/feat/view-loading-api branch from c6f8f1e to ac3c881 Compare August 27, 2024 11:51
@ganeshnj ganeshnj force-pushed the ganeshnj/feat/view-loading-api branch from ac3c881 to e49d5f0 Compare August 27, 2024 12:04
@datadog-datadog-prod-us1
Copy link

datadog-datadog-prod-us1 bot commented Aug 27, 2024

Datadog Report

Branch report: ganeshnj/feat/view-loading-api
Commit report: a6f034a
Test service: dd-sdk-ios

✅ 0 Failed, 1869 Passed, 0 Skipped, 1m 15.03s Total Time
🔻 Test Sessions change in coverage: 3 decreased, 4 increased, 1 no change

🔻 Code Coverage Decreases vs Default Branch (3)

  • test DatadogTraceTests iOS 54.33% (-0.02%) - Details
  • test DatadogCoreTests iOS 73.14% (-0.01%) - Details
  • test DatadogSessionReplayTests iOS 30.49% (-0.01%) - Details

@ganeshnj ganeshnj marked this pull request as ready for review August 28, 2024 08:49
@ganeshnj ganeshnj requested review from a team as code owners August 28, 2024 08:49
ncreated
ncreated previously approved these changes Aug 28, 2024
Copy link
Member

@ncreated ncreated left a comment

Choose a reason for hiding this comment

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

Looks great 👌🎯. I left few minor feedbacks 👍.

DatadogRUM/Sources/RUMMonitor/Scopes/RUMViewScope.swift Outdated Show resolved Hide resolved
DatadogRUM/Sources/RUMMonitorProtocol.swift Outdated Show resolved Hide resolved
DatadogRUM/Sources/RUMMonitor/RUMCommand.swift Outdated Show resolved Hide resolved
@ganeshnj ganeshnj requested a review from ncreated August 30, 2024 13:02
@ganeshnj ganeshnj merged commit 654aba5 into develop Sep 2, 2024
15 checks passed
@ganeshnj ganeshnj deleted the ganeshnj/feat/view-loading-api branch September 2, 2024 08:26
@mariedm mariedm mentioned this pull request Sep 11, 2024
3 tasks
@shagedorn
Copy link

Since this was linked in the latest release: Is there any public documentation on how to use this feature?

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