|
| 1 | +<!-- NOTE: THIS FILE IS AUTOGENERATED. DO NOT EDIT BY HAND. --> |
| 2 | +<!-- see templates/registry/markdown/attribute_namespace.md.j2 --> |
| 3 | + |
| 4 | +# App |
| 5 | + |
| 6 | +## Application Attributes |
| 7 | + |
| 8 | +Describes attributes related to client-side applications (e.g. web apps or mobile apps). |
| 9 | + |
| 10 | +| Attribute | Type | Description | Examples | Stability | |
| 11 | +|---|---|---|---|---| |
| 12 | +| <a id="app-installation-id" href="#app-installation-id">`app.installation.id`</a> | string | A unique identifier representing the installation of an application on a specific device [1] | `2ab2916d-a51f-4ac8-80ee-45ac31a28092` |  | |
| 13 | + |
| 14 | +**[1] `app.installation.id`:** Its value SHOULD persist across launches of the same application installation, including through application upgrades. |
| 15 | +It SHOULD change if the application is uninstalled or if all applications of the vendor are uninstalled. |
| 16 | +Additionally, users might be able to reset this value (e.g. by clearing application data). |
| 17 | +If an app is installed multiple times on the same device (e.g. in different accounts on Android), each `app.installation.id` SHOULD have a different value. |
| 18 | +If multiple OpenTelemetry SDKs are used within the same application, they SHOULD use the same value for `app.installation.id`. |
| 19 | +Hardware IDs (e.g. serial number, IMEI, MAC address) MUST NOT be used as the `app.installation.id`. |
| 20 | + |
| 21 | +For iOS, this value SHOULD be equal to the [vendor identifier](https://developer.apple.com/documentation/uikit/uidevice/identifierforvendor). |
| 22 | + |
| 23 | +For Android, examples of `app.installation.id` implementations include: |
| 24 | + |
| 25 | +- [Firebase Installation ID](https://firebase.google.com/docs/projects/manage-installations). |
| 26 | +- A globally unique UUID which is persisted across sessions in your application. |
| 27 | +- [App set ID](https://developer.android.com/identity/app-set-id). |
| 28 | +- [`Settings.getString(Settings.Secure.ANDROID_ID)`](https://developer.android.com/reference/android/provider/Settings.Secure#ANDROID_ID). |
| 29 | + |
| 30 | +More information about Android identifier best practices can be found [here](https://developer.android.com/training/articles/user-data-ids). |
0 commit comments