App Events
Status: Development
출처: 문서
본문
이 문서는 클라이언트 측 애플리케이션(예: 웹 앱 또는 모바일 앱)과 관련된 이벤트를 정의해요.
-
Click Events
-
Event:
app.screen.click -
Event:
app.widget.click -
Crash Event
-
Event:
app.crash -
Jank Event
-
Event:
app.jank -
Attributes
Click Events
Event: app.screen.click
Status:
이벤트 이름은 반드시 app.screen.click 이어야 해요.
이 이벤트는 애플리케이션 화면에서 순간적으로 발생한 클릭을 나타내요.
app.screen.click 이벤트는 사용자가 애플리케이션의 화면 영역을 클릭하거나 탭했음을 나타내는 데 사용할 수 있어요. 애플리케이션의 활성 영역 밖에서 발생한 클릭은 이 이벤트를 생성해서는 안 돼요. 이 이벤트는 터치/마우스 다운과 터치/마우스 업을 구분하지 않아요. 구현은 일반적으로 터치 릴리스나 마우스 업 시점, 즉 클릭이 완료되는 시점에 이 이벤트를 생성하는 것을 선호해야 해요. 클릭 이벤트의 위치는 절대 화면 픽셀(absolute screen pixels)로 제공해야 해요.
속성:
| | Key | Stability | Requirement Level | Value Type | Description | Example Values
| app.screen.coordinate.x | | Required | int | The x (horizontal) coordinate of a screen coordinate, in screen pixels. | 0; 131
| app.screen.coordinate.y | | Required | int | The y (vertical) component of a screen coordinate, in screen pixels. | 12; 99
| app.screen.id | | Recommended | string | An identifier that uniquely differentiates this screen from other screens in the same application. [1] | f9bc787d-ff05-48ad-90e1-fca1d46130b3; com.example.app.MainActivity; com.example.shop.ProductDetailFragment; MyApp.ProfileView; MyApp.ProfileViewController
| app.screen.name | | Opt-In | string | The name of an application screen. [2] | MainActivity; ProductDetailFragment; ProfileView; ProfileViewController
[1] app.screen.id: A screen represents only the part of the device display drawn by the app. It typically contains multiple widgets or UI components and is larger in scope than individual widgets. Multiple screens can coexist on the same display simultaneously (e.g., split view on tablets).
[2] app.screen.name: A screen represents only the part of the device display drawn by the app. It typically contains multiple widgets or UI components and is larger in scope than individual widgets. Multiple screens can coexist on the same display simultaneously (e.g., split view on tablets).
Event: app.widget.click
이벤트 이름은 반드시 app.widget.click 이어야 해요.
이 이벤트는 애플리케이션 위젯이 클릭되었음을 나타내요.
시각적 애플리케이션 구성 요소가 (보통 사용자의 수동 조작을 통해) 클릭되었음을 나타낼 때 이 이벤트를 사용해요.
속성:
| | Key | Stability | Requirement Level | Value Type | Description | Example Values
| app.widget.id | | Required | string | An identifier that uniquely differentiates this widget from other widgets in the same application. [1] | f9bc787d-ff05-48ad-90e1-fca1d46130b3; submit_order_1829
| app.screen.id | | Recommended | string | An identifier that uniquely differentiates this screen from other screens in the same application. [2] | f9bc787d-ff05-48ad-90e1-fca1d46130b3; com.example.app.MainActivity; com.example.shop.ProductDetailFragment; MyApp.ProfileView; MyApp.ProfileViewController
| app.screen.coordinate.x | | Opt-In | int | The x (horizontal) coordinate of a screen coordinate, in screen pixels. | 0; 131
| app.screen.coordinate.y | | Opt-In | int | The y (vertical) component of a screen coordinate, in screen pixels. | 12; 99
| app.screen.name | | Opt-In | string | The name of an application screen. [3] | MainActivity; ProductDetailFragment; ProfileView; ProfileViewController
| app.widget.name | | Opt-In | string | The name of an application widget. [4] | submit; attack; Clear Cart
[1] app.widget.id: A widget is an application component, typically an on-screen visual GUI element.
[2] app.screen.id: A screen represents only the part of the device display drawn by the app. It typically contains multiple widgets or UI components and is larger in scope than individual widgets. Multiple screens can coexist on the same display simultaneously (e.g., split view on tablets).
[3] app.screen.name: A screen represents only the part of the device display drawn by the app. It typically contains multiple widgets or UI components and is larger in scope than individual widgets. Multiple screens can coexist on the same display simultaneously (e.g., split view on tablets).
[4] app.widget.name: A widget is an application component, typically an on-screen visual GUI element.
Crash Event
Event: app.crash
이벤트 이름은 반드시 app.crash 이어야 해요.
이 이벤트는 복구할 수 없는 프로그래밍 오류(예: 예외 또는 낮은 수준에서 오류가 발생했음을 나타내는 신호)로 인해 사용자 대면 애플리케이션이 종료되었음을 나타내요.
크래시 이벤트는 크래시가 발생한 애플리케이션 인스턴스에서 실행되고 있지 않은 OTel SDK 인스턴스에 의해 비동기적으로 생성될 수 있어요. 예를 들어 계측은 디스크의 tombstone에서 찾은 정보를 바탕으로 이전 앱 인스턴스의 크래시를 보고할 수 있어요. 크래시를 보고하는 주체가 크래시가 발생한 애플리케이션 인스턴스 자체가 아니라면, 크래시된 애플리케이션 인스턴스를 식별하는 관련 리소스 속성을 이벤트 속성으로 반드시 제공해서 보고자(reporter)의 리소스에 있는 해당 속성이 대신 사용되지 않도록 해야 해요. 계측이 크래시 인스턴스가 이미 보고되었는지 여부를 어떻게 판단할지, 그리고 필요한 데이터를 어떻게 가져올지는 계측에 달려 있어요. 중복 제거에 충분한 데이터를 제공하는 것은 필수가 아니에요.
속성:
| | Key | Stability | Requirement Level | Value Type | Description | Example Values
| app.build_id | | Conditionally Required [1] | string | Unique identifier for a particular build or compilation of the application. | 6cff0a7e-cefc-4668-96f5-1273d8b334d0; 9f2b833506aa6973a92fde9733e6271f; my-app-1.0.0-code-123
| os.name | | Conditionally Required [2] | string | Human readable operating system name. | iOS; Android; Ubuntu
| os.version | | Conditionally Required [3] | string | The version string of the operating system as defined in Version Attributes. | 14.2.1; 18.04.1
| service.version | | Conditionally Required [4] | string | The version string of the service component. The format is not defined by these conventions. | 2.0.0; a01dbef8a
| app.crash.id | | Recommended | string | A unique identifier representing an instance of an end user facing app crash. [5] | 083d3d2d-9a0e-47f8-be3d-bc3c5538ba38
| exception.message | | Recommended | string | The exception message. [6] | Division by zero; Can't convert 'int' object to str implicitly
| exception.stacktrace | | Recommended | string | A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG. [7] | Exception in thread "main" java.lang.RuntimeException: Test exception\\n at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\\n at com.example.GenerateTrace.methodA(GenerateTrace.java:9)\\n at com.example.GenerateTrace.main(GenerateTrace.java:5)
| exception.type | | Recommended | string | The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it. [8] | java.net.ConnectException; OSError
| session.id | | Recommended | string | A unique ID to identify a session. | 00112233-4455-6677-8899-aabbccddeeff
[1] app.build_id: If reporter is not the crashing application instance itself and it’s available.
[2] os.name: If reporter is not the crashing application instance itself and the OS name is available.
[3] os.version: If reporter is not the crashing application instance itself.
[4] service.version: If reporter is not the crashing application instance itself.
[5] app.crash.id: Its value MAY be meaningful and be used as a reference for telemetry and metadata recorded by
the same instrumentation (e.g. it is an ID generated by an external source that captured the crash).
It MAY come from a source external to the instrumentation such that it can be used to look up additional
data from other sources as well as facilitate deduplication.
[6] exception.message: If this contains obfuscated symbols, app.build_id SHOULD be provided so they can be deobfuscated.
[7] exception.stacktrace: If this contains obfuscated symbols, app.build_id SHOULD be provided so they can be deobfuscated.
[8] exception.type: If this contains obfuscated symbols, app.build_id SHOULD be provided so they can be deobfuscated.
Jank Event
Event: app.jank
Jank는 UI 렌더링의 중단으로, 화면이 느리게 느껴지거나 응답하지 않거나 멈춘 것처럼 보일 수 있어요. Jank를 감지할 수 있는 애플리케이션은 다음 이벤트로 이를 보고할 수 있어요:
이벤트 이름은 반드시 app.jank 이어야 해요.
이 이벤트는 애플리케이션이 표준 이하의 UI 렌더링 성능을 감지했음을 나타내요.
Jank는 사용자가 어떤 중단이나 느림을 체감할 만큼 UI가 느리게 렌더링될 때 발생해요.
속성:
| | Key | Stability | Requirement Level | Value Type | Description | Example Values
| app.jank.frame_count | | Recommended | int | A number of frame renders that experienced jank. [1] | 9; 42
| app.jank.period | | Recommended | double | The time period, in seconds, for which this jank is being reported. | 1.0; 5.0; 10.24
| app.jank.threshold | | Recommended | double | The minimum rendering threshold for this jank, in seconds. | 0.016; 0.7; 1.024
[1] app.jank.frame_count: Depending on platform limitations, the value provided MAY be approximation.
Attributes
모든 애플리케이션 관련 속성(텔레메트리 항목에 나타날 수 있는)은 앱 속성 레지스트리(app attributes registry)를 참고하세요.