Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
a78c7c2
feat(attributes): Add remaining device context attributes
buenaflor Mar 24, 2026
799812a
chore: Add PR number to changelog entries
buenaflor Mar 24, 2026
919e9e2
fix: regenerate attribute files to match source definitions
buenaflor Mar 24, 2026
90811f9
feat(attributes): Add more device context and network connection attr…
buenaflor Mar 24, 2026
ad8779e
fix: Add symmetric alias between network.connection.type and device.c…
buenaflor Mar 24, 2026
f2f7fb3
Merge branch 'main' into giancarlobuenaflor/add-device-context-attrib…
buenaflor Mar 30, 2026
93c72ca
fix: Complete symmetric aliases for connection type attribute group
buenaflor Mar 30, 2026
746a8f4
fix: regenerate attribute files to include full alias lists
buenaflor Mar 30, 2026
802f685
feat(attributes): Add device.archs attribute
buenaflor Apr 7, 2026
c600def
feat(attributes): Add device.timezone and device.locale attributes
buenaflor Apr 7, 2026
2a65678
fix: Add PR number 303 to changelog entries for new device attributes
buenaflor Apr 7, 2026
ec28533
Merge branch 'main' into giancarlobuenaflor/add-device-context-attrib…
buenaflor Apr 7, 2026
33907bb
fix: Align network.connection.type description with main branch
buenaflor Apr 7, 2026
6e0a083
fix: Include PR reference in deprecated_attributes.json for device.lo…
buenaflor Apr 7, 2026
f194d6c
fix: Remove device.locale and device.timezone deprecations
buenaflor Apr 13, 2026
fb96d54
feat(attributes): Add device.locale and device.timezone as non-deprec…
buenaflor Apr 13, 2026
4da2126
fix: Make device.locale and device.timezone standalone stable attributes
buenaflor Apr 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,045 changes: 976 additions & 69 deletions javascript/sentry-conventions/src/attributes.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion model/attributes/connectionType.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"is_in_otel": false,
"example": "wifi",
"sdks": ["javascript-browser"],
"alias": ["network.connection.type"],
"alias": ["network.connection.type", "device.connection_type"],
"deprecation": {
"replacement": "network.connection.type",
"reason": "Old namespace-less attribute, to be replaced with network.connection.type for span-first future",
Expand Down
17 changes: 17 additions & 0 deletions model/attributes/device/device__archs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"key": "device.archs",
"brief": "The CPU architectures of the device.",
"type": "string[]",
"pii": {
"key": "maybe"
},
"is_in_otel": false,
"example": ["arm64-v8a", "armeabi-v7a", "armeabi"],
"changelog": [
{
"version": "next",
"prs": [303],
"description": "Added device.archs attribute"
}
]
}
17 changes: 17 additions & 0 deletions model/attributes/device/device__battery_level.json
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"
}
]
}
17 changes: 17 additions & 0 deletions model/attributes/device/device__battery_temperature.json
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"
}
]
}
17 changes: 17 additions & 0 deletions model/attributes/device/device__boot_time.json
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"
}
]
}
17 changes: 17 additions & 0 deletions model/attributes/device/device__charging.json
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"
}
]
}
17 changes: 17 additions & 0 deletions model/attributes/device/device__chipset.json
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"
}
]
}
23 changes: 23 additions & 0 deletions model/attributes/device/device__connection_type.json
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", "connectionType"],
"changelog": [
{
"version": "next",
"prs": [303],
"description": "Added and deprecated device.connection_type in favor of network.connection.type"
}
]
}
17 changes: 17 additions & 0 deletions model/attributes/device/device__cpu_description.json
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"
}
]
}
17 changes: 17 additions & 0 deletions model/attributes/device/device__external_free_storage.json
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"
}
]
}
17 changes: 17 additions & 0 deletions model/attributes/device/device__external_storage_size.json
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"
}
]
}
17 changes: 17 additions & 0 deletions model/attributes/device/device__free_storage.json
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"
}
]
}
17 changes: 17 additions & 0 deletions model/attributes/device/device__id.json
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"
}
]
}
17 changes: 17 additions & 0 deletions model/attributes/device/device__locale.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"key": "device.locale",
"brief": "The locale of the device.",
"type": "string",
"pii": {
"key": "maybe"
},
"is_in_otel": false,
"example": "en-US",
"changelog": [
{
"version": "next",
"prs": [303],
"description": "Added device.locale attribute"
}
]
}
17 changes: 17 additions & 0 deletions model/attributes/device/device__low_memory.json
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"
}
]
}
17 changes: 17 additions & 0 deletions model/attributes/device/device__manufacturer.json
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"
}
]
}
17 changes: 17 additions & 0 deletions model/attributes/device/device__name.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"key": "device.name",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OTel has device.model.name. Is there a semantic difference? Otherwise wdyt about using the OTel version?

Copy link
Copy Markdown
Contributor Author

@buenaflor buenaflor Mar 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think device.model.name is represented by our device.model.

and OTel device.model.identifier is device.model_id

"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"
}
]
}
17 changes: 17 additions & 0 deletions model/attributes/device/device__online.json
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"
}
]
}
17 changes: 17 additions & 0 deletions model/attributes/device/device__orientation.json
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"
}
]
}
17 changes: 17 additions & 0 deletions model/attributes/device/device__processor_frequency.json
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"
}
]
}
17 changes: 17 additions & 0 deletions model/attributes/device/device__screen_density.json
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"
}
]
}
17 changes: 17 additions & 0 deletions model/attributes/device/device__screen_dpi.json
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"
}
]
}
Loading
Loading