-
Notifications
You must be signed in to change notification settings - Fork 4
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
RUMM-2195: Add OS and device information properties to the RUM schema #62
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -204,6 +204,70 @@ | |
}, | ||
"readOnly": true | ||
}, | ||
"os": { | ||
"type": "object", | ||
"description": "Operating system properties", | ||
"required": [ | ||
"name", | ||
"version", | ||
"version_major" | ||
], | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "Operating system name, e.g. Android, iOS", | ||
"readOnly": true | ||
}, | ||
"version": { | ||
"type": "string", | ||
"description": "Full operating system version, e.g. 8.1.1", | ||
"readOnly": true | ||
}, | ||
"version_major": { | ||
"type": "string", | ||
"description": "Major operating system version, e.g. 8", | ||
"readOnly": true | ||
} | ||
} | ||
}, | ||
"device": { | ||
"type": "object", | ||
"description": "Device properties", | ||
"required": [ | ||
"type" | ||
], | ||
Comment on lines
+236
to
+238
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unless we upgrade the format version, all new fields are optionals There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"description": "Device type info", | ||
"enum": [ | ||
"mobile", | ||
"desktop", | ||
"tablet", | ||
"tv", | ||
"gaming_console", | ||
"bot", | ||
Comment on lines
+248
to
+249
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we have an accurate way to detect those natively? Also on the naming, I might use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess Not sure about There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't we only add them once we need it? I think for now we can only use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree with @0xnm , these are the values available in the backend and since the browser (also using this rum format) can run on those, we need to be compatible There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm fine with being exhaustive from the start or add it as needed. FYI we don't plan to provide those properties via the Browser SDK. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is the definition of this enum backend side There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
"other" | ||
], | ||
"readOnly": true | ||
}, | ||
"name": { | ||
"type": "string", | ||
"description": "Device marketing name, e.g. Xiaomi Redmi Note 8 Pro, Pixel 5, etc.", | ||
"readOnly": true | ||
}, | ||
"model": { | ||
"type": "string", | ||
"description": "Device SKU model, e.g. Samsung SM-988GN, etc. Quite often name and model can be the same.", | ||
"readOnly": true | ||
}, | ||
"brand": { | ||
"type": "string", | ||
"description": "Device marketing brand, e.g. Apple, OPPO, Xiaomi, etc.", | ||
"readOnly": true | ||
} | ||
} | ||
}, | ||
"_dd": { | ||
"type": "object", | ||
"description": "Internal properties", | ||
|
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.
Unless we upgrade the format version, all new fields are optionals