Skip to content
Open
Show file tree
Hide file tree
Changes from 7 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,099 changes: 1,071 additions & 28 deletions javascript/sentry-conventions/src/attributes.ts

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions model/attributes/app/app__app_build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"key": "app.app_build",
"brief": "Internal build identifier, as it appears on the platform.",
"type": "string",
"pii": {
"key": "maybe"
},
"is_in_otel": false,
"sdks": ["sentry.cocoa", "sentry.java.android", "sentry.javascript.react-native", "sentry.dart.flutter"],
"example": "1",
"alias": ["app.build"],
"deprecation": {
"replacement": "app.build",
"reason": "Deprecated in favor of app.build",
"_status": "backfill"
},
"changelog": [
{
"version": "next",
"prs": [296],
"description": "Added and deprecated app.app_build in favor of app.build"
}
]
}
24 changes: 24 additions & 0 deletions model/attributes/app/app__app_identifier.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"key": "app.app_identifier",
"brief": "Version-independent application identifier, often a dotted bundle ID.",
"type": "string",
"pii": {
"key": "maybe"
},
"is_in_otel": false,
"sdks": ["sentry.cocoa", "sentry.java.android", "sentry.javascript.react-native", "sentry.dart.flutter"],
"example": "com.example.myapp",
"alias": ["app.identifier"],
"deprecation": {
"replacement": "app.identifier",
"reason": "Deprecated in favor of app.identifier",
"_status": "backfill"
},
"changelog": [
{
"version": "next",
"prs": [296],
"description": "Added and deprecated app.app_identifier in favor of app.identifier"
}
]
}
24 changes: 24 additions & 0 deletions model/attributes/app/app__app_name.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"key": "app.app_name",
"brief": "Human readable application name, as it appears on the platform.",
"type": "string",
"pii": {
"key": "maybe"
},
"is_in_otel": false,
"sdks": ["sentry.cocoa", "sentry.java.android", "sentry.javascript.react-native", "sentry.dart.flutter"],
"example": "My App",
"alias": ["app.name"],
"deprecation": {
"replacement": "app.name",
"reason": "Deprecated in favor of app.name",
"_status": "backfill"
},
"changelog": [
{
"version": "next",
"prs": [296],
"description": "Added and deprecated app.app_name in favor of app.name"
}
]
}
24 changes: 24 additions & 0 deletions model/attributes/app/app__app_start_time.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"key": "app.app_start_time",
"brief": "Formatted UTC timestamp when the user started the application.",
"type": "string",
"pii": {
"key": "maybe"
},
"is_in_otel": false,
"sdks": ["sentry.cocoa", "sentry.java.android", "sentry.javascript.react-native", "sentry.dart.flutter"],
"example": "2025-01-01T00:00:00.000Z",
"alias": ["app.start_time"],
"deprecation": {
"replacement": "app.start_time",
"reason": "Deprecated in favor of app.start_time",
"_status": "backfill"
},
"changelog": [
{
"version": "next",
"prs": [296],
"description": "Added and deprecated app.app_start_time in favor of app.start_time"
}
]
}
24 changes: 24 additions & 0 deletions model/attributes/app/app__app_version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"key": "app.app_version",
"brief": "Human readable application version, as it appears on the platform.",
"type": "string",
"pii": {
"key": "maybe"
},
"is_in_otel": false,
"sdks": ["sentry.cocoa", "sentry.java.android", "sentry.javascript.react-native", "sentry.dart.flutter"],
"example": "1.0.0",
"alias": ["app.version"],
"deprecation": {
"replacement": "app.version",
"reason": "Deprecated in favor of app.version",
"_status": "backfill"
},
"changelog": [
{
"version": "next",
"prs": [296],
"description": "Added and deprecated app.app_version in favor of app.version"
}
]
}
1 change: 1 addition & 0 deletions model/attributes/app/app__build.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"is_in_otel": false,
"sdks": ["sentry.cocoa", "sentry.java.android", "sentry.javascript.react-native", "sentry.dart.flutter"],
"example": "1",
"alias": ["app.app_build"],
"changelog": [
{
"version": "next",
Expand Down
1 change: 1 addition & 0 deletions model/attributes/app/app__identifier.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"is_in_otel": false,
"sdks": ["sentry.cocoa", "sentry.java.android", "sentry.javascript.react-native", "sentry.dart.flutter"],
"example": "com.example.myapp",
"alias": ["app.app_identifier"],
"changelog": [
{
"version": "next",
Expand Down
1 change: 1 addition & 0 deletions model/attributes/app/app__name.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"is_in_otel": false,
"sdks": ["sentry.cocoa", "sentry.java.android", "sentry.javascript.react-native", "sentry.dart.flutter"],
"example": "My App",
"alias": ["app.app_name"],
"changelog": [
{
"version": "next",
Expand Down
1 change: 1 addition & 0 deletions model/attributes/app/app__start_time.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"is_in_otel": false,
"sdks": ["sentry.cocoa", "sentry.java.android", "sentry.javascript.react-native", "sentry.dart.flutter"],
"example": "2025-01-01T00:00:00.000Z",
"alias": ["app.app_start_time"],
"changelog": [
{
"version": "next",
Expand Down
1 change: 1 addition & 0 deletions model/attributes/app/app__version.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"is_in_otel": false,
"sdks": ["sentry.cocoa", "sentry.java.android", "sentry.javascript.react-native", "sentry.dart.flutter"],
"example": "1.0.0",
"alias": ["app.app_version"],
"changelog": [
{
"version": "next",
Expand Down
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"],
"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__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"
}
]
}
Loading
Loading