-
Notifications
You must be signed in to change notification settings - Fork 897
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
Additional resource attributes for browser #3287
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,3 +54,34 @@ groups: | |
to retrieve brands and platform individually from the User-Agent Client Hints API. | ||
To retrieve the value, the legacy `navigator.userAgent` API can be used. | ||
examples: ['Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36'] | ||
- id: visitor_id | ||
type: string | ||
brief: An anonymous id for the visiting user. | ||
note: > | ||
This will remain same in a given browser session, and will persist | ||
across page navigations in the same browser session. | ||
examples: ["123"] | ||
- id: session_id | ||
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 not sure this is the correct location / name for this value as the session id could be used for more than the browser. Additionally, as a varying attribute I'm not sure that this is location -- but I don't know where this belongs. |
||
type: string | ||
brief: Identifier for the current browser session | ||
examples: ["123"] | ||
- id: page_impression_id | ||
type: string | ||
brief: Unique id for the page impression, represented by a GUID | ||
note: > | ||
As an example, Page.html will yield 4 impression ids if the page is | ||
refreshed 4 times in the same browser instance. For SPA apps, every | ||
URL change results in a new impression. | ||
examples: ["12627cc493-f310-47de-96bd-71410b7dec043"] | ||
- id: screen_width | ||
type: int | ||
brief: Screen width of the device/browser view port | ||
examples: [600] | ||
- id: screen_height | ||
type: int | ||
brief: Screen height of the device/browser view port | ||
examples: [400] | ||
- id: url | ||
type: string | ||
brief: Complete URL of the current active page including the URL fragment | ||
examples: ["https://en.wikipedia.org/wiki/Main_Page#foo"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
As discussed in the RUM Sig this morning, to avoid possible duplication between client runtimes (browser, android, IOS, IOT, etc) perhaps these should be defined with a more generic namespace.
Perhaps:
client
(need to check if there is an ECS equivalent to avoid possible name clashes if/when ECS merges)Additionally, as several of these are defined as varying values within a single execution resources may also not be the best location for these types.
@tedsuo do you have any thoughts on where to define semantic conventions for
mutable
resource values (ie. Ephemeral Resource type Attributes )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 raised a separate issue #3351 seeking guidance on a common namespace for browser and mobile.