-
Notifications
You must be signed in to change notification settings - Fork 134
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
Regenerate rum model #1344
Regenerate rum model #1344
Conversation
Datadog ReportBranch report: ✅ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small remark on the public API name, other than this looks great 👌 🎯
@@ -300,6 +300,30 @@ public struct RUMActionEvent: RUMDataModel { | |||
} | |||
} | |||
|
|||
/// Display properties | |||
public struct RUMDisplay: Codable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public API convention/ (“avoid platform self referencing”) Because now we nest this model, there is no more need to prefix it with RUM*
. We add this prefix as part of RUM code decoration:
if fixedName == "Display" {
fixedName = "RUMDisplay"
}
Otherwise we're self-referencing the product in public API:
- RUMViewEvent.RUMDisplay
- RUMActionEvent.RUMDisplay
...
+ RUMViewEvent.Display
+ RUMActionEvent.Display
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💪
What and why?
This PR updates RUM model.
How?
It required a fix for enum without explicit type in generator, after adding fix I generated the code and added blank mocks. They'll be filled in the follow up PR that adds these metrics to the event.
Review checklist
Custom CI job configuration (optional)