-
Notifications
You must be signed in to change notification settings - Fork 157
✨ [RUM-10223] Add locale and timezone data to view event #3598
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3598 +/- ##
==========================================
- Coverage 92.44% 92.43% -0.01%
==========================================
Files 322 323 +1
Lines 8127 8132 +5
Branches 1838 1838
==========================================
+ Hits 7513 7517 +4
- Misses 614 615 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Bundles Sizes Evolution
🚀 CPU Performance
🧠 Memory Performance
|
41ef52c
to
c220cd0
Compare
@@ -137,6 +137,11 @@ export interface RawRumViewEvent { | |||
start_session_replay_recording_manually: boolean | |||
} | |||
} | |||
device?: { | |||
locale?: string | |||
locales?: string[] | readonly string[] |
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.
suggestion: mentioning both types seems superfluous
locales?: string[] | readonly string[] | |
locales?: string[] |
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.
navigator.languages
is just readonly string[]
and cannot be assigned to mutable array.
At the same time, if we want to test it out, it's fine to have a regular array ['a', 'b']
vs ['a', 'b'] as const
.
What do you think?
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.
I see! Yeah, I think we could just keep readonly string[]
then
Co-authored-by: Thomas Lebeau <[email protected]>
Co-authored-by: Benoît <[email protected]>
7713b14
to
5e35369
Compare
/to-staging |
View all feedbacks in Devflow UI.
Commit 5e35369be2 will soon be integrated into staging-25.
Gitlab pipeline didn't start on its own and we were unable to create it... Please retry. Error: POST https://gitlab.ddbuild.io/api/v4/projects/DataDog/browser-sdk/pipeline: 400 {message: {base: [Reference not found]}} (type: ErrorResponse, retryable: true) |
/to-staging |
View all feedbacks in Devflow UI.
Commit 5e35369be2 will soon be integrated into staging-25.
Commit 5e35369be2 has been merged into staging-25 in merge commit bea48bbdca. Check out the triggered pipeline on Gitlab 🦊 If you need to revert this integration, you can use the following command: |
Integrated commit sha: 5e35369 Co-authored-by: mormubis <[email protected]>
@@ -137,6 +137,11 @@ export interface RawRumViewEvent { | |||
start_session_replay_recording_manually: boolean | |||
} | |||
} | |||
device?: { | |||
locale?: string | |||
locales?: string[] | readonly string[] |
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.
I see! Yeah, I think we could just keep readonly string[]
then
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.
LGTM 👍
Motivation
Adding
locale
andtime_zone
out of the box for all customers.Changes
Pulling changes in the git submodule from DataDog/rum-events-format#272.
Add device fields to
viewCollection
.Test instructions
yarn dev
View Page
event contains thedevice
field populated withlocale
,locales
andtime_zone
Checklist