-
-
Notifications
You must be signed in to change notification settings - Fork 1
feat(attributes): Add more device context attributes #303
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?
Changes from 6 commits
a78c7c2
799812a
919e9e2
90811f9
ad8779e
f2f7fb3
93c72ca
746a8f4
802f685
c600def
2a65678
ec28533
33907bb
6e0a083
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "key": "device.battery_level", | ||
| "brief": "The battery level of the device as a percentage (0-100).", | ||
| "type": "double", | ||
| "pii": { | ||
| "key": "maybe" | ||
| }, | ||
| "is_in_otel": false, | ||
| "example": 100.0, | ||
| "changelog": [ | ||
| { | ||
| "version": "next", | ||
| "prs": [303], | ||
| "description": "Added device.battery_level attribute" | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "key": "device.battery_temperature", | ||
| "brief": "The battery temperature of the device in Celsius.", | ||
| "type": "double", | ||
| "pii": { | ||
| "key": "maybe" | ||
| }, | ||
| "is_in_otel": false, | ||
| "example": 25.0, | ||
| "changelog": [ | ||
| { | ||
| "version": "next", | ||
| "prs": [303], | ||
| "description": "Added device.battery_temperature attribute" | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "key": "device.boot_time", | ||
| "brief": "A formatted UTC timestamp when the system was booted.", | ||
| "type": "string", | ||
| "pii": { | ||
| "key": "maybe" | ||
| }, | ||
| "is_in_otel": false, | ||
| "example": "2018-02-08T12:52:12Z", | ||
| "changelog": [ | ||
| { | ||
| "version": "next", | ||
| "prs": [303], | ||
| "description": "Added device.boot_time attribute" | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "key": "device.charging", | ||
| "brief": "Whether the device was charging or not.", | ||
| "type": "boolean", | ||
| "pii": { | ||
| "key": "maybe" | ||
| }, | ||
| "is_in_otel": false, | ||
| "example": false, | ||
| "changelog": [ | ||
| { | ||
| "version": "next", | ||
| "prs": [303], | ||
| "description": "Added device.charging attribute" | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "key": "device.chipset", | ||
| "brief": "The chipset of the device.", | ||
| "type": "string", | ||
| "pii": { | ||
| "key": "maybe" | ||
| }, | ||
| "is_in_otel": false, | ||
| "example": "Qualcomm SM8550", | ||
| "changelog": [ | ||
| { | ||
| "version": "next", | ||
| "prs": [303], | ||
| "description": "Added device.chipset attribute" | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| { | ||
| "key": "device.connection_type", | ||
| "brief": "The internet connection type currently being used by the device.", | ||
| "type": "string", | ||
| "pii": { | ||
| "key": "maybe" | ||
| }, | ||
| "is_in_otel": false, | ||
| "example": "wifi", | ||
| "deprecation": { | ||
| "_status": "backfill", | ||
| "replacement": "network.connection.type", | ||
| "reason": "This attribute is being deprecated in favor of network.connection.type" | ||
| }, | ||
| "alias": ["network.connection.type"], | ||
| "changelog": [ | ||
| { | ||
| "version": "next", | ||
| "prs": [303], | ||
| "description": "Added and deprecated device.connection_type in favor of network.connection.type" | ||
| } | ||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "key": "device.cpu_description", | ||
| "brief": "A description of the CPU of the device.", | ||
| "type": "string", | ||
| "pii": { | ||
| "key": "maybe" | ||
| }, | ||
| "is_in_otel": false, | ||
| "example": "Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz", | ||
| "changelog": [ | ||
| { | ||
| "version": "next", | ||
| "prs": [303], | ||
| "description": "Added device.cpu_description attribute" | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "key": "device.external_free_storage", | ||
| "brief": "External storage free size in bytes.", | ||
| "type": "integer", | ||
| "pii": { | ||
| "key": "maybe" | ||
| }, | ||
| "is_in_otel": false, | ||
| "example": 67108864000, | ||
| "changelog": [ | ||
| { | ||
| "version": "next", | ||
| "prs": [303], | ||
| "description": "Added device.external_free_storage attribute" | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "key": "device.external_storage_size", | ||
| "brief": "External storage total size in bytes.", | ||
| "type": "integer", | ||
| "pii": { | ||
| "key": "maybe" | ||
| }, | ||
| "is_in_otel": false, | ||
| "example": 134217728000, | ||
| "changelog": [ | ||
| { | ||
| "version": "next", | ||
| "prs": [303], | ||
| "description": "Added device.external_storage_size attribute" | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "key": "device.free_storage", | ||
| "brief": "Free device storage in bytes.", | ||
| "type": "integer", | ||
| "pii": { | ||
| "key": "maybe" | ||
| }, | ||
| "is_in_otel": false, | ||
| "example": 107374182400, | ||
| "changelog": [ | ||
| { | ||
| "version": "next", | ||
| "prs": [303], | ||
| "description": "Added device.free_storage attribute" | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "key": "device.id", | ||
| "brief": "Unique device identifier.", | ||
| "type": "string", | ||
| "pii": { | ||
| "key": "maybe" | ||
| }, | ||
| "is_in_otel": true, | ||
| "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", | ||
| "changelog": [ | ||
| { | ||
| "version": "next", | ||
| "prs": [303], | ||
| "description": "Added device.id attribute" | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "key": "device.low_memory", | ||
| "brief": "Whether the device was low on memory.", | ||
| "type": "boolean", | ||
| "pii": { | ||
| "key": "maybe" | ||
| }, | ||
| "is_in_otel": false, | ||
| "example": false, | ||
| "changelog": [ | ||
| { | ||
| "version": "next", | ||
| "prs": [303], | ||
| "description": "Added device.low_memory attribute" | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "key": "device.manufacturer", | ||
| "brief": "The manufacturer of the device.", | ||
| "type": "string", | ||
| "pii": { | ||
| "key": "maybe" | ||
| }, | ||
| "is_in_otel": true, | ||
| "example": "Google", | ||
| "changelog": [ | ||
| { | ||
| "version": "next", | ||
| "prs": [303], | ||
| "description": "Added device.manufacturer attribute" | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "key": "device.name", | ||
|
Member
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. OTel has
Contributor
Author
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 think and OTel I'd opt for the OTel one too, we can deprecate it at some point later |
||
| "brief": "The name of the device. On mobile, this is the user-assigned device name. On servers and desktops, this is typically the hostname.", | ||
| "type": "string", | ||
| "pii": { | ||
| "key": "maybe" | ||
| }, | ||
| "is_in_otel": false, | ||
| "example": "localhost", | ||
| "changelog": [ | ||
| { | ||
| "version": "next", | ||
| "prs": [303], | ||
| "description": "Added device.name attribute" | ||
| } | ||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "key": "device.online", | ||
| "brief": "Whether the device was online or not.", | ||
| "type": "boolean", | ||
| "pii": { | ||
| "key": "maybe" | ||
| }, | ||
| "is_in_otel": false, | ||
| "example": true, | ||
| "changelog": [ | ||
| { | ||
| "version": "next", | ||
| "prs": [303], | ||
| "description": "Added device.online attribute" | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "key": "device.orientation", | ||
| "brief": "The orientation of the device, either \"portrait\" or \"landscape\".", | ||
| "type": "string", | ||
| "pii": { | ||
| "key": "maybe" | ||
| }, | ||
| "is_in_otel": false, | ||
| "example": "portrait", | ||
| "changelog": [ | ||
| { | ||
| "version": "next", | ||
| "prs": [303], | ||
| "description": "Added device.orientation attribute" | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "key": "device.processor_frequency", | ||
| "brief": "Processor frequency in MHz.", | ||
| "type": "double", | ||
| "pii": { | ||
| "key": "maybe" | ||
| }, | ||
| "is_in_otel": false, | ||
| "example": 2400.0, | ||
| "changelog": [ | ||
| { | ||
| "version": "next", | ||
| "prs": [303], | ||
| "description": "Added device.processor_frequency attribute" | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "key": "device.screen_density", | ||
| "brief": "The screen density of the device.", | ||
| "type": "double", | ||
| "pii": { | ||
| "key": "maybe" | ||
| }, | ||
| "is_in_otel": false, | ||
| "example": 2.625, | ||
| "changelog": [ | ||
| { | ||
| "version": "next", | ||
| "prs": [303], | ||
| "description": "Added device.screen_density attribute" | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "key": "device.screen_dpi", | ||
| "brief": "The screen density in dots-per-inch (DPI) of the device.", | ||
| "type": "integer", | ||
| "pii": { | ||
| "key": "maybe" | ||
| }, | ||
| "is_in_otel": false, | ||
| "example": 420, | ||
| "changelog": [ | ||
| { | ||
| "version": "next", | ||
| "prs": [303], | ||
| "description": "Added device.screen_dpi attribute" | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "key": "device.screen_height_pixels", | ||
| "brief": "The height of the device screen in pixels.", | ||
| "type": "integer", | ||
| "pii": { | ||
| "key": "maybe" | ||
| }, | ||
| "is_in_otel": false, | ||
| "example": 2400, | ||
| "changelog": [ | ||
| { | ||
| "version": "next", | ||
| "prs": [303], | ||
| "description": "Added device.screen_height_pixels attribute" | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| { | ||
| "key": "device.screen_width_pixels", | ||
| "brief": "The width of the device screen in pixels.", | ||
| "type": "integer", | ||
| "pii": { | ||
| "key": "maybe" | ||
| }, | ||
| "is_in_otel": false, | ||
| "example": 1080, | ||
| "changelog": [ | ||
| { | ||
| "version": "next", | ||
| "prs": [303], | ||
| "description": "Added device.screen_width_pixels attribute" | ||
| } | ||
| ] | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.