Skip to content

Commit 8b9d7c0

Browse files
Update the semantic conventions version to 1.43.0 (#518)
* Update the semantic conventions version to 1.43.0 * Update changelog PR link --------- Co-authored-by: otelbot <197425009+otelbot@users.noreply.github.com>
1 parent 81d627e commit 8b9d7c0

14 files changed

Lines changed: 116 additions & 44 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## Unreleased
44

5+
* Bump to semconv v1.43.0
6+
([#518](https://github.com/open-telemetry/semantic-conventions-java/pull/518))
7+
58
## Version 1.42.0 (2026-06-16)
69

710
* Bump to semconv v1.42.0

build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ val snapshot = true
1212
// end
1313

1414
// The release version of https://github.com/open-telemetry/semantic-conventions used to generate classes
15-
var semanticConventionsVersion = "1.42.0"
15+
var semanticConventionsVersion = "1.43.0"
1616
val schemaUrlVersions = listOf(
1717
semanticConventionsVersion,
18+
"1.42.0",
1819
"1.41.1",
1920
"1.41.0",
2021
"1.40.0",
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1-
Comparing source compatibility of opentelemetry-semconv-1.42.0-SNAPSHOT.jar against opentelemetry-semconv-1.42.0.jar
2-
No changes.
1+
Comparing source compatibility of opentelemetry-semconv-1.43.0-SNAPSHOT.jar against opentelemetry-semconv-1.42.0.jar
2+
*** MODIFIED CLASS: PUBLIC FINAL io.opentelemetry.semconv.SchemaUrls (not serializable)
3+
=== CLASS FILE FORMAT VERSION: 52.0 <- 52.0
4+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String V1_43_0
5+
*** MODIFIED CLASS: PUBLIC STATIC FINAL io.opentelemetry.semconv.TelemetryAttributes$TelemetrySdkLanguageValues (not serializable)
6+
=== CLASS FILE FORMAT VERSION: 52.0 <- 52.0
7+
+++ NEW FIELD: PUBLIC(+) STATIC(+) FINAL(+) java.lang.String KOTLIN

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ public final class AzureIncubatingAttributes {
5757
public static final AttributeKey<Long> AZURE_COSMOSDB_RESPONSE_SUB_STATUS_CODE =
5858
longKey("azure.cosmosdb.response.sub_status_code");
5959

60+
/**
61+
* The name of the Azure <a
62+
* href="https://learn.microsoft.com/azure/azure-resource-manager/management/manage-resource-groups-portal">resource
63+
* group</a> the resource belongs to.
64+
*/
65+
public static final AttributeKey<String> AZURE_RESOURCE_GROUP_NAME =
66+
stringKey("azure.resource_group.name");
67+
6068
/**
6169
* <a
6270
* href="https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers">Azure

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public final class CicdIncubatingMetrics {
5353
public static final String CICD_WORKER_COUNT_NAME = "cicd.worker.count";
5454

5555
/** Unit of the {@code cicd.worker.count} metric. */
56-
public static final String CICD_WORKER_COUNT_UNIT = "{count}";
56+
public static final String CICD_WORKER_COUNT_UNIT = "{worker}";
5757

5858
/** Description of the {@code cicd.worker.count} metric. */
5959
public static final String CICD_WORKER_COUNT_DESCRIPTION =

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@
1313
// buildscripts/templates/registry/incubating_java/IncubatingSemanticAttributes.java.j2
1414
@SuppressWarnings("unused")
1515
public final class CloudIncubatingAttributes {
16-
/** The cloud account ID the resource is assigned to. */
16+
/**
17+
* The cloud account ID the resource is assigned to.
18+
*
19+
* <p>Notes:
20+
*
21+
* <p>For Azure, this is the subscription ID.
22+
*/
1723
public static final AttributeKey<String> CLOUD_ACCOUNT_ID = stringKey("cloud.account.id");
1824

1925
/**

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

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,12 +327,31 @@ public final class DbIncubatingAttributes {
327327
@Deprecated public static final AttributeKey<String> DB_OPERATION = stringKey("db.operation");
328328

329329
/**
330-
* The number of queries included in a batch operation.
330+
* The number of database operations included in a batch operation.
331331
*
332332
* <p>Notes:
333333
*
334-
* <p>Operations are only considered batches when they contain two or more operations, and so
335-
* {@code db.operation.batch.size} SHOULD never be {@code 1}.
334+
* <p>Except for empty batch requests described below, a batch operation contains two or more
335+
* database operations explicitly submitted as separate operations in a single client call,
336+
* protocol message, or database command.
337+
*
338+
* <p>Requests to batch APIs that contain only one operation SHOULD be modeled as single
339+
* operations, not as batch operations.
340+
*
341+
* <p>A database call is not a batch operation solely because one operation accepts multiple
342+
* operands, such as keys, rows, documents, points, or other data elements, including Redis <a
343+
* href="https://redis.io/docs/latest/commands/mget/">{@code MGET}</a> with multiple keys.
344+
*
345+
* <p>In batch APIs that execute the same parameterized operation with parameter sets, each
346+
* parameter set represents one database operation for determining whether the request is a batch
347+
* operation. Requests with only one parameter set SHOULD be modeled as single operations, not as
348+
* batch operations.
349+
*
350+
* <p>{@code db.operation.batch.size} SHOULD be set to the number of operations in the batch. It
351+
* SHOULD NOT be set for non-batch operations.
352+
*
353+
* <p>A request to execute a batch operation with no operations SHOULD also be treated as a batch
354+
* operation, and {@code db.operation.batch.size} SHOULD be set to {@code 0}.
336355
*
337356
* @deprecated deprecated in favor of stable {@link
338357
* io.opentelemetry.semconv.DbAttributes#DB_OPERATION_BATCH_SIZE} attribute.

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,9 @@ public final class K8sIncubatingAttributes {
184184
* <p>Examples:
185185
*
186186
* <ul>
187-
* <li>A label {@code replicas} with value {@code 1} SHOULD be recorded as the {@code
187+
* <li>An annotation {@code replicas} with value {@code 1} SHOULD be recorded as the {@code
188188
* k8s.daemonset.annotation.replicas} attribute with value {@code "1"}.
189-
* <li>A label {@code data} with empty string value SHOULD be recorded as the {@code
189+
* <li>An annotation {@code data} with empty string value SHOULD be recorded as the {@code
190190
* k8s.daemonset.annotation.data} attribute with value {@code ""}.
191191
* </ul>
192192
*
@@ -208,7 +208,7 @@ public final class K8sIncubatingAttributes {
208208
* <ul>
209209
* <li>A label {@code app} with value {@code guestbook} SHOULD be recorded as the {@code
210210
* k8s.daemonset.label.app} attribute with value {@code "guestbook"}.
211-
* <li>A label {@code data} with empty string value SHOULD be recorded as the {@code
211+
* <li>A label {@code injected} with empty string value SHOULD be recorded as the {@code
212212
* k8s.daemonset.label.injected} attribute with value {@code ""}.
213213
* </ul>
214214
*
@@ -246,9 +246,9 @@ public final class K8sIncubatingAttributes {
246246
* <p>Examples:
247247
*
248248
* <ul>
249-
* <li>A label {@code replicas} with value {@code 1} SHOULD be recorded as the {@code
249+
* <li>An annotation {@code replicas} with value {@code 1} SHOULD be recorded as the {@code
250250
* k8s.deployment.annotation.replicas} attribute with value {@code "1"}.
251-
* <li>A label {@code data} with empty string value SHOULD be recorded as the {@code
251+
* <li>An annotation {@code data} with empty string value SHOULD be recorded as the {@code
252252
* k8s.deployment.annotation.data} attribute with value {@code ""}.
253253
* </ul>
254254
*
@@ -268,7 +268,7 @@ public final class K8sIncubatingAttributes {
268268
* <p>Examples:
269269
*
270270
* <ul>
271-
* <li>A label {@code replicas} with value {@code 0} SHOULD be recorded as the {@code
271+
* <li>A label {@code app} with value {@code guestbook} SHOULD be recorded as the {@code
272272
* k8s.deployment.label.app} attribute with value {@code "guestbook"}.
273273
* <li>A label {@code injected} with empty string value SHOULD be recorded as the {@code
274274
* k8s.deployment.label.injected} attribute with value {@code ""}.
@@ -356,9 +356,9 @@ public final class K8sIncubatingAttributes {
356356
* <p>Examples:
357357
*
358358
* <ul>
359-
* <li>A label {@code number} with value {@code 1} SHOULD be recorded as the {@code
359+
* <li>An annotation {@code number} with value {@code 1} SHOULD be recorded as the {@code
360360
* k8s.job.annotation.number} attribute with value {@code "1"}.
361-
* <li>A label {@code data} with empty string value SHOULD be recorded as the {@code
361+
* <li>An annotation {@code data} with empty string value SHOULD be recorded as the {@code
362362
* k8s.job.annotation.data} attribute with value {@code ""}.
363363
* </ul>
364364
*
@@ -380,7 +380,7 @@ public final class K8sIncubatingAttributes {
380380
* <ul>
381381
* <li>A label {@code jobtype} with value {@code ci} SHOULD be recorded as the {@code
382382
* k8s.job.label.jobtype} attribute with value {@code "ci"}.
383-
* <li>A label {@code data} with empty string value SHOULD be recorded as the {@code
383+
* <li>A label {@code automated} with empty string value SHOULD be recorded as the {@code
384384
* k8s.job.label.automated} attribute with value {@code ""}.
385385
* </ul>
386386
*
@@ -416,9 +416,9 @@ public final class K8sIncubatingAttributes {
416416
* <p>Examples:
417417
*
418418
* <ul>
419-
* <li>A label {@code ttl} with value {@code 0} SHOULD be recorded as the {@code
419+
* <li>An annotation {@code ttl} with value {@code 0} SHOULD be recorded as the {@code
420420
* k8s.namespace.annotation.ttl} attribute with value {@code "0"}.
421-
* <li>A label {@code data} with empty string value SHOULD be recorded as the {@code
421+
* <li>An annotation {@code data} with empty string value SHOULD be recorded as the {@code
422422
* k8s.namespace.annotation.data} attribute with value {@code ""}.
423423
* </ul>
424424
*
@@ -845,9 +845,9 @@ public final class K8sIncubatingAttributes {
845845
* <p>Examples:
846846
*
847847
* <ul>
848-
* <li>A label {@code replicas} with value {@code 0} SHOULD be recorded as the {@code
848+
* <li>An annotation {@code replicas} with value {@code 0} SHOULD be recorded as the {@code
849849
* k8s.replicaset.annotation.replicas} attribute with value {@code "0"}.
850-
* <li>A label {@code data} with empty string value SHOULD be recorded as the {@code
850+
* <li>An annotation {@code data} with empty string value SHOULD be recorded as the {@code
851851
* k8s.replicaset.annotation.data} attribute with value {@code ""}.
852852
* </ul>
853853
*
@@ -1091,9 +1091,9 @@ public final class K8sIncubatingAttributes {
10911091
* <p>Examples:
10921092
*
10931093
* <ul>
1094-
* <li>A label {@code replicas} with value {@code 1} SHOULD be recorded as the {@code
1094+
* <li>An annotation {@code replicas} with value {@code 1} SHOULD be recorded as the {@code
10951095
* k8s.statefulset.annotation.replicas} attribute with value {@code "1"}.
1096-
* <li>A label {@code data} with empty string value SHOULD be recorded as the {@code
1096+
* <li>An annotation {@code data} with empty string value SHOULD be recorded as the {@code
10971097
* k8s.statefulset.annotation.data} attribute with value {@code ""}.
10981098
* </ul>
10991099
*
@@ -1113,7 +1113,7 @@ public final class K8sIncubatingAttributes {
11131113
* <p>Examples:
11141114
*
11151115
* <ul>
1116-
* <li>A label {@code replicas} with value {@code 0} SHOULD be recorded as the {@code
1116+
* <li>A label {@code app} with value {@code guestbook} SHOULD be recorded as the {@code
11171117
* k8s.statefulset.label.app} attribute with value {@code "guestbook"}.
11181118
* <li>A label {@code injected} with empty string value SHOULD be recorded as the {@code
11191119
* k8s.statefulset.label.injected} attribute with value {@code ""}.

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ public final class NetworkIncubatingAttributes {
5252
public static final AttributeKey<String> NETWORK_INTERFACE_NAME =
5353
stringKey("network.interface.name");
5454

55-
/** The network IO operation direction. */
55+
/**
56+
* The direction of traffic from the perspective of the observing host's physical or virtual
57+
* network interface. It should not be used to represent the logical direction of a stateful
58+
* connection or network flow.
59+
*/
5660
public static final AttributeKey<String> NETWORK_IO_DIRECTION = stringKey("network.io.direction");
5761

5862
/**

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ public static final class TelemetrySdkLanguageIncubatingValues {
102102
/** java. */
103103
public static final String JAVA = "java";
104104

105+
/** kotlin. */
106+
public static final String KOTLIN = "kotlin";
107+
105108
/** nodejs. */
106109
public static final String NODEJS = "nodejs";
107110

0 commit comments

Comments
 (0)