4.2 KiB
Semantic Conventions for mobile events
Status: Experimental
This document defines semantic conventions for instrumentations that emit
events on mobile platforms. All mobile events MUST use a namespace of
device in the event.name property.
Lifecycle instrumentation
This section defines how to apply semantic conventions when instrumenting
application lifecycle. This event is meant to be used in conjunction with
os.name resource semantic convention to identify the
mobile operating system (e.g. Android, iOS).
iOS
The event name MUST be device.app.lifecycle.
| Attribute | Type | Description | Examples | Requirement Level | Stability |
|---|---|---|---|---|---|
ios.state |
string | This attribute represents the state the application has transitioned into at the occurrence of the event. [1] | active |
Required |
[1]: The iOS lifecycle states are defined in the UIApplicationDelegate documentation, and from which the OS terminology column values are derived.
ios.state MUST be one of the following:
Android
The event name MUST be device.app.lifecycle.
| Attribute | Type | Description | Examples | Requirement Level | Stability |
|---|---|---|---|---|---|
android.state |
string | This attribute represents the state the application has transitioned into at the occurrence of the event. [1] | created |
Required |
[1]: The Android lifecycle states are defined in Activity lifecycle callbacks, and from which the OS identifiers are derived.
android.state MUST be one of the following: