Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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,055 changes: 994 additions & 61 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
1 change: 1 addition & 0 deletions model/attributes/culture/culture__locale.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
},
"is_in_otel": false,
"example": "en-US",
"alias": ["device.locale"],
"changelog": [
{
"version": "0.4.0",
Expand Down
1 change: 1 addition & 0 deletions model/attributes/culture/culture__timezone.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
},
"is_in_otel": false,
"example": "Europe/Vienna",
"alias": ["device.timezone"],
"changelog": [
{
"version": "0.4.0",
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"
}
]
}
23 changes: 23 additions & 0 deletions model/attributes/device/device__locale.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"key": "device.locale",
"brief": "The locale of the device.",
"type": "string",
"pii": {
"key": "maybe"
},
"is_in_otel": false,
"example": "en-US",
"deprecation": {
"_status": "backfill",
"replacement": "culture.locale",
"reason": "This attribute is being deprecated in favor of culture.locale"
},
"alias": ["culture.locale"],
"changelog": [
{
"version": "next",
"prs": [303],
"description": "Added and deprecated device.locale in favor of culture.locale"
}
]
}
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

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"
}
]
}
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"
}
]
}
Loading
Loading