Update RUM schema#3193
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d61f99b08b
ℹ️ 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".
| "type": "object", | ||
| "description": "Schema of common properties of RUM events", | ||
| "required": ["date", "application", "session", "_dd"], | ||
| "required": ["date", "application", "session", "view", "_dd"], |
There was a problem hiding this comment.
Keep
view optional in common schema
Making view globally required in the shared RUM schema breaks app-launch vitals that are emitted before the first view is established: RumVitalAppLaunchEventHelper explicitly sets view to null when rumContext.viewId/viewUrl are missing, so after model regeneration this change makes VitalAppLaunchEvent.view non-null and the helper no longer type-checks (or those events fail validation if generation is skipped).
Useful? React with 👍 / 👎.
25bb63a to
0da2f44
Compare
890ac78 to
6c01f83
Compare
|
🎯 Code Coverage (details) 🔗 Commit SHA: b70a733 | Docs | Datadog PR Page | Was this helpful? Give us feedback! |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #3193 +/- ##
===========================================
+ Coverage 71.26% 71.27% +0.02%
===========================================
Files 929 929
Lines 34442 34438 -4
Branches 5813 5814 +1
===========================================
+ Hits 24542 24545 +3
+ Misses 8255 8254 -1
+ Partials 1645 1639 -6
🚀 New features to boost your workflow:
|
d9d44c8 to
7816abe
Compare
| id = rumContext.viewId ?: RumContext.NULL_UUID, | ||
| referrer = null, | ||
| url = rumContext.viewUrl ?: "", |
There was a problem hiding this comment.
7816abe to
6468260
Compare
Co-Authored-By: Claude Opus 4.6 <[email protected]>
6468260 to
5cbb9a0
Compare
f7c3d69 to
2df802f
Compare
2df802f to
b70a733
Compare
What does this PR do?
cloneRumSchemaGradle task.generateRumModelsFromJsonGradle task.viewnow being a non-nullable inVitalAppLaunchEvent(changes in_common-schema.json).Motivation
Get the latest changes from
resource-schema.jsonwith the newrequestandresponseproperties needed for the Network Headers capture.