-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Liudmila Molkova <[email protected]>
- Loading branch information
Showing
60 changed files
with
4,961 additions
and
3,958 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
...bating/src/main/java/io/opentelemetry/semconv/incubating/AndroidIncubatingAttributes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* | ||
* 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/SemanticAttributes.java.j2 | ||
@SuppressWarnings("unused") | ||
public final class AndroidIncubatingAttributes { | ||
|
||
/** | ||
* Uniquely identifies the framework API revision offered by a version ({@code os.version}) of the | ||
* android operating system. More information can be found <a | ||
* href="https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels">here</a>. | ||
*/ | ||
public static final AttributeKey<String> ANDROID_OS_API_LEVEL = stringKey("android.os.api_level"); | ||
|
||
/** | ||
* This attribute represents the state the application has transitioned into at the occurrence of | ||
* the event. | ||
* | ||
* <p>Notes: | ||
* | ||
* <ul> | ||
* <li>The Android lifecycle states are defined in <a | ||
* href="https://developer.android.com/guide/components/activities/activity-lifecycle#lc">Activity | ||
* lifecycle callbacks</a>, and from which the {@code OS identifiers} are derived. | ||
* </ul> | ||
*/ | ||
public static final AttributeKey<String> ANDROID_STATE = stringKey("android.state"); | ||
|
||
// Enum definitions | ||
public static final class AndroidStateValues { | ||
/** | ||
* 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 AndroidStateValues() {} | ||
} | ||
|
||
private AndroidIncubatingAttributes() {} | ||
} |
Oops, something went wrong.