Skip to content

Commit c7b8306

Browse files
committed
Commit codegen changes from upgrade
1 parent 7dd6b9b commit c7b8306

30 files changed

+157
-1052
lines changed

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

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,11 @@ public final class AndroidIncubatingAttributes {
2929
* <p>The Android lifecycle states are defined in <a
3030
* href="https://developer.android.com/guide/components/activities/activity-lifecycle#lc">Activity
3131
* lifecycle callbacks</a>, and from which the {@code OS identifiers} are derived.
32-
*
33-
* <p>
34-
*
35-
* @deprecated Replaced by {@code device.app.lifecycle}.
3632
*/
37-
@Deprecated public static final AttributeKey<String> ANDROID_STATE = stringKey("android.state");
33+
public static final AttributeKey<String> ANDROID_STATE = stringKey("android.state");
3834

3935
// Enum definitions
40-
/**
41-
* Values for {@link #ANDROID_STATE}
42-
*
43-
* @deprecated Replaced by {@code device.app.lifecycle}.
44-
*/
45-
@Deprecated
36+
/** Values for {@link #ANDROID_STATE}. */
4637
public static final class AndroidStateIncubatingValues {
4738
/**
4839
* Any time before Activity.onResume() or, if the app has no Activity, Context.startService()

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ public final class ClientIncubatingAttributes {
2424
* client.address} SHOULD represent the client address behind any intermediaries, for example
2525
* proxies, if it's available.
2626
*
27-
* <p>
28-
*
2927
* @deprecated deprecated in favor of stable {@link
3028
* io.opentelemetry.semconv.ClientAttributes#CLIENT_ADDRESS} attribute.
3129
*/
@@ -40,8 +38,6 @@ public final class ClientIncubatingAttributes {
4038
* client.port} SHOULD represent the client port behind any intermediaries, for example proxies,
4139
* if it's available.
4240
*
43-
* <p>
44-
*
4541
* @deprecated deprecated in favor of stable {@link
4642
* io.opentelemetry.semconv.ClientAttributes#CLIENT_PORT} attribute.
4743
*/

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

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,8 @@
1414
// buildscripts/templates/registry/incubating_java/IncubatingSemanticAttributes.java.j2
1515
@SuppressWarnings("unused")
1616
public final class CodeIncubatingAttributes {
17-
/**
18-
* Deprecated, use {@code code.column.number}
19-
*
20-
* <p>
21-
*
22-
* @deprecated Replaced by {@code code.column.number}
23-
*/
24-
@Deprecated public static final AttributeKey<Long> CODE_COLUMN = longKey("code.column");
17+
/** Deprecated, use {@code code.column.number} */
18+
public static final AttributeKey<Long> CODE_COLUMN = longKey("code.column");
2519

2620
/**
2721
* The column number in {@code code.file.path} best representing the operation. It SHOULD point
@@ -38,14 +32,8 @@ public final class CodeIncubatingAttributes {
3832
/** Deprecated, use {@code code.file.path} instead */
3933
public static final AttributeKey<String> CODE_FILEPATH = stringKey("code.filepath");
4034

41-
/**
42-
* Deprecated, use {@code code.function.name} instead
43-
*
44-
* <p>
45-
*
46-
* @deprecated Replaced by {@code code.function.name}
47-
*/
48-
@Deprecated public static final AttributeKey<String> CODE_FUNCTION = stringKey("code.function");
35+
/** Deprecated, use {@code code.function.name} instead */
36+
public static final AttributeKey<String> CODE_FUNCTION = stringKey("code.function");
4937

5038
/**
5139
* The method or function name, or equivalent (usually rightmost part of the code unit's name).
@@ -58,14 +46,8 @@ public final class CodeIncubatingAttributes {
5846
*/
5947
public static final AttributeKey<Long> CODE_LINE_NUMBER = longKey("code.line.number");
6048

61-
/**
62-
* Deprecated, use {@code code.line.number} instead
63-
*
64-
* <p>
65-
*
66-
* @deprecated Replaced by {@code code.line.number}
67-
*/
68-
@Deprecated public static final AttributeKey<Long> CODE_LINENO = longKey("code.lineno");
49+
/** Deprecated, use {@code code.line.number} instead */
50+
public static final AttributeKey<Long> CODE_LINENO = longKey("code.lineno");
6951

7052
/**
7153
* The "namespace" within which {@code code.function.name} is defined. Usually the qualified class

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

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,7 @@ public final class ContainerIncubatingAttributes {
3535
public static final AttributeKey<String> CONTAINER_COMMAND_LINE =
3636
stringKey("container.command_line");
3737

38-
/**
39-
* Deprecated, use {@code cpu.mode} instead.
40-
*
41-
* <p>
42-
*
43-
* @deprecated Replaced by {@code cpu.mode}
44-
*/
45-
@Deprecated
38+
/** Deprecated, use {@code cpu.mode} instead. */
4639
public static final AttributeKey<String> CONTAINER_CPU_STATE = stringKey("container.cpu.state");
4740

4841
/**
@@ -124,14 +117,7 @@ public final class ContainerIncubatingAttributes {
124117
public static final AttributeKeyTemplate<String> CONTAINER_LABEL =
125118
stringKeyTemplate("container.label");
126119

127-
/**
128-
* Deprecated, use {@code container.label} instead.
129-
*
130-
* <p>
131-
*
132-
* @deprecated Replaced by {@code container.label}.
133-
*/
134-
@Deprecated
120+
/** Deprecated, use {@code container.label} instead. */
135121
public static final AttributeKeyTemplate<String> CONTAINER_LABELS =
136122
stringKeyTemplate("container.labels");
137123

@@ -142,12 +128,7 @@ public final class ContainerIncubatingAttributes {
142128
public static final AttributeKey<String> CONTAINER_RUNTIME = stringKey("container.runtime");
143129

144130
// Enum definitions
145-
/**
146-
* Values for {@link #CONTAINER_CPU_STATE}
147-
*
148-
* @deprecated Replaced by {@code cpu.mode}
149-
*/
150-
@Deprecated
131+
/** Values for {@link #CONTAINER_CPU_STATE}. */
151132
public static final class ContainerCpuStateIncubatingValues {
152133
/**
153134
* When tasks of the cgroup are in user mode (Linux). When all container processes are in user

0 commit comments

Comments
 (0)