-
Notifications
You must be signed in to change notification settings - Fork 887
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Device (Mobile) and OS Version Resource Semantic Attributes (#1596)
* Add Device (Mobile) and OS Version Resource Semantic Attributes * Added OS Name (iOS) and OS Version (14.4) to `os`. * Added Device Identifier and Model Identifier to a newly created `device` group.
- Loading branch information
Showing
6 changed files
with
72 additions
and
4 deletions.
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
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
groups: | ||
- id: device | ||
prefix: device | ||
brief: > | ||
The device on which the process represented by this resource is running. | ||
attributes: | ||
- id: id | ||
type: string | ||
brief: 'A unique identifier representing the device' | ||
note: > | ||
The device identifier MUST only be defined using the values outlined below. This value is not an advertising | ||
identifier and MUST NOT be used as such. | ||
On iOS (Swift or Objective-C), this value MUST be equal to the [vendor identifier](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor). | ||
On Android (Java or Kotlin), this value MUST be equal to the Firebase Installation ID or a globally unique | ||
UUID which is persisted across sessions in your application. More information can be found [here](https://developer.android.com/training/articles/user-data-ids) | ||
on best practices and exact implementation details. | ||
Caution should be taken when storing personal data or anything which can identify a user. GDPR and | ||
data protection laws may apply, ensure you do your own due diligence. | ||
examples: ['2ab2916d-a51f-4ac8-80ee-45ac31a28092'] | ||
- id: model.identifier | ||
type: string | ||
brief: 'The model identifier for the device' | ||
note: > | ||
It's recommended this value represents a machine readable version of | ||
the model identifier rather than the market or consumer-friendly name | ||
of the device. | ||
examples: ['iPhone3,4', 'SM-G920F'] | ||
- id: model.name | ||
type: string | ||
brief: 'The marketing name for the device model' | ||
note: > | ||
It's recommended this value represents a human readable version of the | ||
device model rather than a machine readable alternative. | ||
examples: ['iPhone 6s Plus', 'Samsung Galaxy S6'] |
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
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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Device | ||
|
||
**Status**: [Experimental](../../document-status.md) | ||
|
||
**type:** `device` | ||
|
||
**Description**: The device on which the process represented by this resource is running. | ||
|
||
<!-- semconv device --> | ||
| Attribute | Type | Description | Examples | Required | | ||
|---|---|---|---|---| | ||
| `device.id` | string | A unique identifier representing the device [1] | `2ab2916d-a51f-4ac8-80ee-45ac31a28092` | No | | ||
| `device.model.identifier` | string | The model identifier for the device [2] | `iPhone3,4`; `SM-G920F` | No | | ||
| `device.model.name` | string | The marketing name for the device model [3] | `iPhone 6s Plus`; `Samsung Galaxy S6` | No | | ||
|
||
**[1]:** The device identifier MUST only be defined using the values outlined below. This value is not an advertising identifier and MUST NOT be used as such. On iOS (Swift or Objective-C), this value MUST be equal to the [vendor identifier](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor). On Android (Java or Kotlin), this value MUST be equal to the Firebase Installation ID or a globally unique UUID which is persisted across sessions in your application. More information can be found [here](https://developer.android.com/training/articles/user-data-ids) on best practices and exact implementation details. Caution should be taken when storing personal data or anything which can identify a user. GDPR and data protection laws may apply, ensure you do your own due diligence. | ||
|
||
**[2]:** It's recommended this value represents a machine readable version of the model identifier rather than the market or consumer-friendly name of the device. | ||
|
||
**[3]:** It's recommended this value represents a human readable version of the device model rather than a machine readable alternative. | ||
<!-- endsemconv --> |
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