|
5 | 5 |
|
6 | 6 | package io.opentelemetry.semconv.incubating; |
7 | 7 |
|
| 8 | +import static io.opentelemetry.api.common.AttributeKey.doubleKey; |
8 | 9 | import static io.opentelemetry.api.common.AttributeKey.longKey; |
9 | 10 | import static io.opentelemetry.api.common.AttributeKey.stringKey; |
10 | 11 |
|
|
14 | 15 | // buildscripts/templates/registry/incubating_java/IncubatingSemanticAttributes.java.j2 |
15 | 16 | @SuppressWarnings("unused") |
16 | 17 | public final class AppIncubatingAttributes { |
| 18 | + /** Unique identifier for a particular build or compilation of the application. */ |
| 19 | + public static final AttributeKey<String> APP_BUILD_ID = stringKey("app.build_id"); |
| 20 | + |
17 | 21 | /** |
18 | 22 | * A unique identifier representing the installation of an application on a specific device |
19 | 23 | * |
@@ -44,11 +48,27 @@ public final class AppIncubatingAttributes { |
44 | 48 | * Settings.getString(Settings.Secure.ANDROID_ID)}</a>. |
45 | 49 | * </ul> |
46 | 50 | * |
47 | | - * <p>More information about Android identifier best practices can be found <a |
48 | | - * href="https://developer.android.com/training/articles/user-data-ids">here</a>. |
| 51 | + * <p>More information about Android identifier best practices can be found in the <a |
| 52 | + * href="https://developer.android.com/training/articles/user-data-ids">Android user data IDs |
| 53 | + * guide</a>. |
49 | 54 | */ |
50 | 55 | public static final AttributeKey<String> APP_INSTALLATION_ID = stringKey("app.installation.id"); |
51 | 56 |
|
| 57 | + /** |
| 58 | + * A number of frame renders that experienced jank. |
| 59 | + * |
| 60 | + * <p>Notes: |
| 61 | + * |
| 62 | + * <p>Depending on platform limitations, the value provided MAY be approximation. |
| 63 | + */ |
| 64 | + public static final AttributeKey<Long> APP_JANK_FRAME_COUNT = longKey("app.jank.frame_count"); |
| 65 | + |
| 66 | + /** The time period, in seconds, for which this jank is being reported. */ |
| 67 | + public static final AttributeKey<Double> APP_JANK_PERIOD = doubleKey("app.jank.period"); |
| 68 | + |
| 69 | + /** The minimum rendering threshold for this jank, in seconds. */ |
| 70 | + public static final AttributeKey<Double> APP_JANK_THRESHOLD = doubleKey("app.jank.threshold"); |
| 71 | + |
52 | 72 | /** The x (horizontal) coordinate of a screen coordinate, in screen pixels. */ |
53 | 73 | public static final AttributeKey<Long> APP_SCREEN_COORDINATE_X = |
54 | 74 | longKey("app.screen.coordinate.x"); |
|
0 commit comments