-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathAppIncubatingAttributes.java
More file actions
125 lines (109 loc) · 5.23 KB
/
AppIncubatingAttributes.java
File metadata and controls
125 lines (109 loc) · 5.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.semconv.incubating;
import static io.opentelemetry.api.common.AttributeKey.doubleKey;
import static io.opentelemetry.api.common.AttributeKey.longKey;
import static io.opentelemetry.api.common.AttributeKey.stringKey;
import io.opentelemetry.api.common.AttributeKey;
// DO NOT EDIT, this is an Auto-generated file from
// buildscripts/templates/registry/incubating_java/IncubatingSemanticAttributes.java.j2
@SuppressWarnings("unused")
public final class AppIncubatingAttributes {
/** Unique identifier for a particular build or compilation of the application. */
public static final AttributeKey<String> APP_BUILD_ID = stringKey("app.build_id");
/**
* A unique identifier representing the installation of an application on a specific device
*
* <p>Notes:
*
* <p>Its value SHOULD persist across launches of the same application installation, including
* through application upgrades. It SHOULD change if the application is uninstalled or if all
* applications of the vendor are uninstalled. Additionally, users might be able to reset this
* value (e.g. by clearing application data). If an app is installed multiple times on the same
* device (e.g. in different accounts on Android), each {@code app.installation.id} SHOULD have a
* different value. If multiple OpenTelemetry SDKs are used within the same application, they
* SHOULD use the same value for {@code app.installation.id}. Hardware IDs (e.g. serial number,
* IMEI, MAC address) MUST NOT be used as the {@code app.installation.id}.
*
* <p>For iOS, this value SHOULD be equal to the <a
* href="https://developer.apple.com/documentation/uikit/uidevice/identifierforvendor">vendor
* identifier</a>.
*
* <p>For Android, examples of {@code app.installation.id} implementations include:
*
* <ul>
* <li><a href="https://firebase.google.com/docs/projects/manage-installations">Firebase
* Installation ID</a>.
* <li>A globally unique UUID which is persisted across sessions in your application.
* <li><a href="https://developer.android.com/identity/app-set-id">App set ID</a>.
* <li><a
* href="https://developer.android.com/reference/android/provider/Settings.Secure#ANDROID_ID">{@code
* Settings.getString(Settings.Secure.ANDROID_ID)}</a>.
* </ul>
*
* <p>More information about Android identifier best practices can be found in the <a
* href="https://developer.android.com/training/articles/user-data-ids">Android user data IDs
* guide</a>.
*/
public static final AttributeKey<String> APP_INSTALLATION_ID = stringKey("app.installation.id");
/**
* A number of frame renders that experienced jank.
*
* <p>Notes:
*
* <p>Depending on platform limitations, the value provided MAY be approximation.
*/
public static final AttributeKey<Long> APP_JANK_FRAME_COUNT = longKey("app.jank.frame_count");
/** The time period, in seconds, for which this jank is being reported. */
public static final AttributeKey<Double> APP_JANK_PERIOD = doubleKey("app.jank.period");
/** The minimum rendering threshold for this jank, in seconds. */
public static final AttributeKey<Double> APP_JANK_THRESHOLD = doubleKey("app.jank.threshold");
/** The x (horizontal) coordinate of a screen coordinate, in screen pixels. */
public static final AttributeKey<Long> APP_SCREEN_COORDINATE_X =
longKey("app.screen.coordinate.x");
/** The y (vertical) component of a screen coordinate, in screen pixels. */
public static final AttributeKey<Long> APP_SCREEN_COORDINATE_Y =
longKey("app.screen.coordinate.y");
/**
* An identifier that uniquely differentiates this screen from other screens in the same
* application.
*
* <p>Notes:
*
* <p>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).
*/
public static final AttributeKey<String> APP_SCREEN_ID = stringKey("app.screen.id");
/**
* The name of an application screen.
*
* <p>Notes:
*
* <p>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).
*/
public static final AttributeKey<String> APP_SCREEN_NAME = stringKey("app.screen.name");
/**
* An identifier that uniquely differentiates this widget from other widgets in the same
* application.
*
* <p>Notes:
*
* <p>A widget is an application component, typically an on-screen visual GUI element.
*/
public static final AttributeKey<String> APP_WIDGET_ID = stringKey("app.widget.id");
/**
* The name of an application widget.
*
* <p>Notes:
*
* <p>A widget is an application component, typically an on-screen visual GUI element.
*/
public static final AttributeKey<String> APP_WIDGET_NAME = stringKey("app.widget.name");
// Enum definitions
private AppIncubatingAttributes() {}
}