Skip to content

RUM-19988: Timestamp resource errors at failure time - #4151

Merged
abrooksv merged 1 commit into
developfrom
abrooks/rum-19988/resource-error-timestamp
Nov 12, 2026
Merged

abrooksv merged 1 commit into
developfrom
abrooks/rum-19988/resource-error-timestamp

Conversation

@abrooksv

@abrooksv abrooksv commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

What does this PR do?

Use the failure event's timestamp plus the saved server clock offset, matching iOS.

Motivation

Aligns the timestamp across iOS stopResourceWithError and Browser's addError API

Additional Notes

This divergence has exited since 2020 and was introduced when the SDK was migrated to use scopes.
View errors already took the error event's timestamp as well so this lines up closer to Views as well (#452)

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • 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)

Use the failure event's timestamp plus the saved server clock offset,
matching iOS.
@abrooksv
abrooksv requested review from a team as code owners November 12, 2026 17:35
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 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-12T17:37:04.715932Z 661df9f PR opened
🔒 Security Review ✅ Completed 2026-11-12T17:40:14.816447Z 661df9f PR opened
ℹ️ 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.

@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

Both resource-error paths use the failure timestamp with the saved server clock offset, while preserving the monotonic failure timestamps used by storage callbacks.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit 661df9f

@datadog-prod-us1-4

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

Copy link
Copy Markdown

Pipelines  Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
• Patch Coverage: 100.00%
• Overall Coverage: 72.31% (-0.05%)

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

@abrooksv
abrooksv merged commit fddc683 into develop Nov 12, 2026
25 checks passed
@abrooksv
abrooksv deleted the abrooks/rum-19988/resource-error-timestamp branch November 12, 2026 18:18
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