-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathAndroidIncubatingAttributes.java
More file actions
96 lines (80 loc) · 3.39 KB
/
Copy pathAndroidIncubatingAttributes.java
File metadata and controls
96 lines (80 loc) · 3.39 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
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.semconv.incubating;
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 AndroidIncubatingAttributes {
/**
* This attribute represents the state of the application.
*
* <p>Notes:
*
* <p>The Android lifecycle states are defined in <a
* href="https://developer.android.com/guide/components/activities/activity-lifecycle#lifecycle-callbacks">Activity
* lifecycle callbacks</a>, and from which the {@code OS identifiers} are derived.
*/
public static final AttributeKey<String> ANDROID_APP_STATE = stringKey("android.app.state");
/**
* Uniquely identifies the framework API revision offered by a version ({@code os.version}) of the
* android operating system. More information can be found in the <a
* href="https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels">Android
* API levels documentation</a>.
*/
public static final AttributeKey<String> ANDROID_OS_API_LEVEL = stringKey("android.os.api_level");
/**
* Deprecated. Use {@code android.app.state} attribute instead.
*
* @deprecated Replaced by {@code android.app.state}.
*/
@Deprecated public static final AttributeKey<String> ANDROID_STATE = stringKey("android.state");
// Enum definitions
/** Values for {@link #ANDROID_APP_STATE}. */
public static final class AndroidAppStateIncubatingValues {
/**
* Any time before Activity.onResume() or, if the app has no Activity, Context.startService()
* has been called in the app for the first time.
*/
public static final String CREATED = "created";
/**
* Any time after Activity.onPause() or, if the app has no Activity, Context.stopService() has
* been called when the app was in the foreground state.
*/
public static final String BACKGROUND = "background";
/**
* Any time after Activity.onResume() or, if the app has no Activity, Context.startService() has
* been called when the app was in either the created or background states.
*/
public static final String FOREGROUND = "foreground";
private AndroidAppStateIncubatingValues() {}
}
/**
* Values for {@link #ANDROID_STATE}
*
* @deprecated Replaced by {@code android.app.state}.
*/
@Deprecated
public static final class AndroidStateIncubatingValues {
/**
* Any time before Activity.onResume() or, if the app has no Activity, Context.startService()
* has been called in the app for the first time.
*/
public static final String CREATED = "created";
/**
* Any time after Activity.onPause() or, if the app has no Activity, Context.stopService() has
* been called when the app was in the foreground state.
*/
public static final String BACKGROUND = "background";
/**
* Any time after Activity.onResume() or, if the app has no Activity, Context.startService() has
* been called when the app was in either the created or background states.
*/
public static final String FOREGROUND = "foreground";
private AndroidStateIncubatingValues() {}
}
private AndroidIncubatingAttributes() {}
}