Skip to content

Commit 0aae054

Browse files
committed
generate
1 parent edc5967 commit 0aae054

File tree

90 files changed

+12811
-9237
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+12811
-9237
lines changed

buildscripts/templates/registry/incubating_java/IncubatingSemanticAttributes.java.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import java.util.List;
3636
// DO NOT EDIT, this is an Auto-generated file from buildscripts/templates/registry/incubating_java/IncubatingSemanticAttributes.java.j2
3737
@SuppressWarnings("unused")
3838
public final class {{ my_class_name }} {
39-
{% for attribute in ctx.attributes | rejectattr("name", "in", ctx.excluded_attributes) %}{% if attribute is experimental %}
39+
{% for attribute in ctx.attributes | rejectattr("name", "in", ctx.excluded_attributes) | rejectattr("type", "eq", "any") %}{% if attribute is experimental %}
4040
{%- if attribute is deprecated %}{%- set deprecated_javadoc = "@deprecated " ~ attribute.deprecated.note -%}
4141
{%- else -%}{%- set deprecated_javadoc = "" -%}
4242
{%- endif -%}

semconv-incubating/src/main/java/io/opentelemetry/semconv/incubating/AndroidIncubatingAttributes.java

Lines changed: 83 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -2,99 +2,105 @@
22
* Copyright The OpenTelemetry Authors
33
* SPDX-License-Identifier: Apache-2.0
44
*/
5-
65
package io.opentelemetry.semconv.incubating;
76

7+
import static io.opentelemetry.api.common.AttributeKey.booleanKey;
8+
import static io.opentelemetry.api.common.AttributeKey.doubleKey;
9+
import static io.opentelemetry.api.common.AttributeKey.longKey;
810
import static io.opentelemetry.api.common.AttributeKey.stringKey;
11+
import static io.opentelemetry.api.common.AttributeKey.stringArrayKey;
12+
13+
import static io.opentelemetry.semconv.AttributeKeyTemplate.stringArrayKeyTemplate;
14+
import static io.opentelemetry.semconv.AttributeKeyTemplate.stringKeyTemplate;
915

1016
import io.opentelemetry.api.common.AttributeKey;
17+
import io.opentelemetry.semconv.AttributeKeyTemplate;
18+
import java.util.List;
1119

12-
// DO NOT EDIT, this is an Auto-generated file from
13-
// buildscripts/templates/registry/incubating_java/IncubatingSemanticAttributes.java.j2
20+
// DO NOT EDIT, this is an Auto-generated file from buildscripts/templates/registry/incubating_java/IncubatingSemanticAttributes.java.j2
1421
@SuppressWarnings("unused")
1522
public final class AndroidIncubatingAttributes {
16-
/**
17-
* This attribute represents the state of the application.
18-
*
19-
* <p>Notes:
20-
*
21-
* <p>The Android lifecycle states are defined in <a
22-
* href="https://developer.android.com/guide/components/activities/activity-lifecycle#lc">Activity
23-
* lifecycle callbacks</a>, and from which the {@code OS identifiers} are derived.
24-
*/
25-
public static final AttributeKey<String> ANDROID_APP_STATE = stringKey("android.app.state");
26-
27-
/**
28-
* Uniquely identifies the framework API revision offered by a version ({@code os.version}) of the
29-
* android operating system. More information can be found <a
30-
* href="https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels">here</a>.
31-
*/
32-
public static final AttributeKey<String> ANDROID_OS_API_LEVEL = stringKey("android.os.api_level");
33-
34-
/**
35-
* Deprecated. Use {@code android.app.state} instead.
36-
*
37-
* <p>Notes:
38-
*
39-
* <p>The Android lifecycle states are defined in <a
40-
* href="https://developer.android.com/guide/components/activities/activity-lifecycle#lc">Activity
41-
* lifecycle callbacks</a>, and from which the {@code OS identifiers} are derived.
42-
*
43-
* @deprecated Renamed to {@code android.app.state}
44-
*/
45-
@Deprecated public static final AttributeKey<String> ANDROID_STATE = stringKey("android.state");
46-
47-
// Enum definitions
48-
/** Values for {@link #ANDROID_APP_STATE}. */
49-
public static final class AndroidAppStateIncubatingValues {
5023
/**
51-
* Any time before Activity.onResume() or, if the app has no Activity, Context.startService()
52-
* has been called in the app for the first time.
24+
* This attribute represents the state of the application.
25+
* <p>
26+
* Notes:
27+
* <p>
28+
* 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.
5329
*/
54-
public static final String CREATED = "created";
55-
30+
public static final AttributeKey<String> ANDROID_APP_STATE = stringKey("android.app.state");
31+
5632
/**
57-
* Any time after Activity.onPause() or, if the app has no Activity, Context.stopService() has
58-
* been called when the app was in the foreground state.
33+
* 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>.
5934
*/
60-
public static final String BACKGROUND = "background";
61-
35+
public static final AttributeKey<String> ANDROID_OS_API_LEVEL = stringKey("android.os.api_level");
36+
6237
/**
63-
* Any time after Activity.onResume() or, if the app has no Activity, Context.startService() has
64-
* been called when the app was in either the created or background states.
38+
* Deprecated. Use {@code android.app.state} body field instead.
39+
*
40+
* @deprecated Use {@code android.app.state} body field instead.
6541
*/
66-
public static final String FOREGROUND = "foreground";
67-
68-
private AndroidAppStateIncubatingValues() {}
69-
}
70-
71-
/**
72-
* Values for {@link #ANDROID_STATE}
73-
*
74-
* @deprecated Renamed to {@code android.app.state}
75-
*/
76-
@Deprecated
77-
public static final class AndroidStateIncubatingValues {
78-
/**
79-
* Any time before Activity.onResume() or, if the app has no Activity, Context.startService()
80-
* has been called in the app for the first time.
42+
@Deprecated public static final AttributeKey<String> ANDROID_STATE = stringKey("android.state");
43+
44+
45+
// Enum definitions
46+
47+
48+
49+
50+
51+
52+
53+
54+
/** Values for {@link #ANDROID_APP_STATE}. */
55+
public static final class AndroidAppStateIncubatingValues {
56+
/**
57+
* Any time before Activity.onResume() or, if the app has no Activity, Context.startService() has been called in the app for the first time.
8158
*/
82-
public static final String CREATED = "created";
83-
84-
/**
85-
* Any time after Activity.onPause() or, if the app has no Activity, Context.stopService() has
86-
* been called when the app was in the foreground state.
59+
public static final String CREATED = "created";
60+
61+
/**
62+
* 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.
8763
*/
88-
public static final String BACKGROUND = "background";
89-
64+
public static final String BACKGROUND = "background";
65+
66+
/**
67+
* 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.
68+
*/
69+
public static final String FOREGROUND = "foreground";
70+
71+
private AndroidAppStateIncubatingValues() {}
72+
}
73+
74+
75+
76+
77+
78+
79+
80+
9081
/**
91-
* Any time after Activity.onResume() or, if the app has no Activity, Context.startService() has
92-
* been called when the app was in either the created or background states.
82+
* Values for {@link #ANDROID_STATE}
83+
* @deprecated Use {@code android.app.state} body field instead.
84+
*/@Deprecated
85+
public static final class AndroidStateIncubatingValues {
86+
/**
87+
* Any time before Activity.onResume() or, if the app has no Activity, Context.startService() has been called in the app for the first time.
9388
*/
94-
public static final String FOREGROUND = "foreground";
95-
96-
private AndroidStateIncubatingValues() {}
97-
}
89+
public static final String CREATED = "created";
90+
91+
/**
92+
* 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.
93+
*/
94+
public static final String BACKGROUND = "background";
95+
96+
/**
97+
* 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.
98+
*/
99+
public static final String FOREGROUND = "foreground";
100+
101+
private AndroidStateIncubatingValues() {}
102+
}
103+
98104

99-
private AndroidIncubatingAttributes() {}
100-
}
105+
private AndroidIncubatingAttributes() {}
106+
}

semconv-incubating/src/main/java/io/opentelemetry/semconv/incubating/AppIncubatingAttributes.java

Lines changed: 69 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -2,53 +2,81 @@
22
* Copyright The OpenTelemetry Authors
33
* SPDX-License-Identifier: Apache-2.0
44
*/
5-
65
package io.opentelemetry.semconv.incubating;
76

7+
import static io.opentelemetry.api.common.AttributeKey.booleanKey;
8+
import static io.opentelemetry.api.common.AttributeKey.doubleKey;
9+
import static io.opentelemetry.api.common.AttributeKey.longKey;
810
import static io.opentelemetry.api.common.AttributeKey.stringKey;
11+
import static io.opentelemetry.api.common.AttributeKey.stringArrayKey;
12+
13+
import static io.opentelemetry.semconv.AttributeKeyTemplate.stringArrayKeyTemplate;
14+
import static io.opentelemetry.semconv.AttributeKeyTemplate.stringKeyTemplate;
915

1016
import io.opentelemetry.api.common.AttributeKey;
17+
import io.opentelemetry.semconv.AttributeKeyTemplate;
18+
import java.util.List;
1119

12-
// DO NOT EDIT, this is an Auto-generated file from
13-
// buildscripts/templates/registry/incubating_java/IncubatingSemanticAttributes.java.j2
20+
// DO NOT EDIT, this is an Auto-generated file from buildscripts/templates/registry/incubating_java/IncubatingSemanticAttributes.java.j2
1421
@SuppressWarnings("unused")
1522
public final class AppIncubatingAttributes {
16-
/**
17-
* A unique identifier representing the installation of an application on a specific device
18-
*
19-
* <p>Notes:
20-
*
21-
* <p>Its value SHOULD persist across launches of the same application installation, including
22-
* through application upgrades. It SHOULD change if the application is uninstalled or if all
23-
* applications of the vendor are uninstalled. Additionally, users might be able to reset this
24-
* value (e.g. by clearing application data). If an app is installed multiple times on the same
25-
* device (e.g. in different accounts on Android), each {@code app.installation.id} SHOULD have a
26-
* different value. If multiple OpenTelemetry SDKs are used within the same application, they
27-
* SHOULD use the same value for {@code app.installation.id}. Hardware IDs (e.g. serial number,
28-
* IMEI, MAC address) MUST NOT be used as the {@code app.installation.id}.
29-
*
30-
* <p>For iOS, this value SHOULD be equal to the <a
31-
* href="https://developer.apple.com/documentation/uikit/uidevice/identifierforvendor">vendor
32-
* identifier</a>.
33-
*
34-
* <p>For Android, examples of {@code app.installation.id} implementations include:
35-
*
36-
* <ul>
37-
* <li><a href="https://firebase.google.com/docs/projects/manage-installations">Firebase
38-
* Installation ID</a>.
39-
* <li>A globally unique UUID which is persisted across sessions in your application.
40-
* <li><a href="https://developer.android.com/identity/app-set-id">App set ID</a>.
41-
* <li><a
42-
* href="https://developer.android.com/reference/android/provider/Settings.Secure#ANDROID_ID">{@code
43-
* Settings.getString(Settings.Secure.ANDROID_ID)}</a>.
44-
* </ul>
45-
*
46-
* <p>More information about Android identifier best practices can be found <a
47-
* href="https://developer.android.com/training/articles/user-data-ids">here</a>.
48-
*/
49-
public static final AttributeKey<String> APP_INSTALLATION_ID = stringKey("app.installation.id");
50-
51-
// Enum definitions
23+
/**
24+
* A unique identifier representing the installation of an application on a specific device
25+
* <p>
26+
* Notes:
27+
* <p>
28+
* Its value SHOULD persist across launches of the same application installation, including through application upgrades.
29+
* It SHOULD change if the application is uninstalled or if all applications of the vendor are uninstalled.
30+
* Additionally, users might be able to reset this value (e.g. by clearing application data).
31+
* 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.
32+
* If multiple OpenTelemetry SDKs are used within the same application, they SHOULD use the same value for {@code app.installation.id}.
33+
* Hardware IDs (e.g. serial number, IMEI, MAC address) MUST NOT be used as the {@code app.installation.id}.
34+
* <p>
35+
* For iOS, this value SHOULD be equal to the <a href="https://developer.apple.com/documentation/uikit/uidevice/identifierforvendor">vendor identifier</a>.
36+
* <p>
37+
* For Android, examples of {@code app.installation.id} implementations include:
38+
* <ul>
39+
* <li><a href="https://firebase.google.com/docs/projects/manage-installations">Firebase Installation ID</a>.
40+
* <li>A globally unique UUID which is persisted across sessions in your application.
41+
* <li><a href="https://developer.android.com/identity/app-set-id">App set ID</a>.
42+
* <li><a href="https://developer.android.com/reference/android/provider/Settings.Secure#ANDROID_ID">{@code Settings.getString(Settings.Secure.ANDROID_ID)}</a>.
43+
* </ul>
44+
* <p>
45+
* More information about Android identifier best practices can be found <a href="https://developer.android.com/training/articles/user-data-ids">here</a>.
46+
*/
47+
public static final AttributeKey<String> APP_INSTALLATION_ID = stringKey("app.installation.id");
48+
49+
/**
50+
* The x (horizontal) coordinate of a screen coordinate, in screen pixels.
51+
*/
52+
public static final AttributeKey<Long> APP_SCREEN_COORDINATE_X = longKey("app.screen.coordinate.x");
53+
54+
/**
55+
* The y (vertical) component of a screen coordinate, in screen pixels.
56+
*/
57+
public static final AttributeKey<Long> APP_SCREEN_COORDINATE_Y = longKey("app.screen.coordinate.y");
58+
59+
/**
60+
* An identifier that uniquely differentiates this widget from other widgets in the same application.
61+
* <p>
62+
* Notes:
63+
* <p>
64+
* A widget is an application component, typically an on-screen visual GUI element.
65+
*/
66+
public static final AttributeKey<String> APP_WIDGET_ID = stringKey("app.widget.id");
67+
68+
/**
69+
* The name of an application widget.
70+
* <p>
71+
* Notes:
72+
* <p>
73+
* A widget is an application component, typically an on-screen visual GUI element.
74+
*/
75+
public static final AttributeKey<String> APP_WIDGET_NAME = stringKey("app.widget.name");
76+
77+
78+
// Enum definitions
79+
5280

53-
private AppIncubatingAttributes() {}
54-
}
81+
private AppIncubatingAttributes() {}
82+
}

0 commit comments

Comments
 (0)