Skip to content

Commit d10f472

Browse files
xrmxherin049
andauthored
opentelemetry-semantic-conventions: Bump to 1.43.0 (#5413)
* opentelemetry-semantic-conventions: Bump to 1.43.0 * Add changelog --------- Co-authored-by: Lukas Hering <40302054+herin049@users.noreply.github.com>
1 parent ae8feeb commit d10f472

12 files changed

Lines changed: 60 additions & 22 deletions

File tree

.changelog/5413.changed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
`opentelemetry-semantic-conventions`: bump to 1.43.0

opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/azure_attributes.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@
4646
Cosmos DB sub status code.
4747
"""
4848

49+
AZURE_RESOURCE_GROUP_NAME: Final = "azure.resource_group.name"
50+
"""
51+
The name of the Azure [resource group](https://learn.microsoft.com/azure/azure-resource-manager/management/manage-resource-groups-portal) the resource belongs to.
52+
"""
53+
4954
AZURE_RESOURCE_PROVIDER_NAMESPACE: Final = "azure.resource_provider.namespace"
5055
"""
5156
[Azure Resource Provider Namespace](https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers) as recognized by the client.

opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/cloud_attributes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
CLOUD_ACCOUNT_ID: Final = "cloud.account.id"
88
"""
99
The cloud account ID the resource is assigned to.
10+
Note: For Azure, this is the subscription ID.
1011
"""
1112

1213
CLOUD_AVAILABILITY_ZONE: Final = "cloud.availability_zone"

opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/network_attributes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
NETWORK_IO_DIRECTION: Final = "network.io.direction"
5151
"""
52-
The network IO operation direction.
52+
The direction of traffic from the perspective of the observing host's physical or virtual network interface. It should not be used to represent the logical direction of a stateful connection or network flow.
5353
"""
5454

5555
NETWORK_LOCAL_ADDRESS: Final = "network.local.address"

opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/telemetry_attributes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ class TelemetrySdkLanguageValues(Enum):
4646
"""Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.telemetry_attributes.TelemetrySdkLanguageValues.GO`."""
4747
JAVA = "java"
4848
"""Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.telemetry_attributes.TelemetrySdkLanguageValues.JAVA`."""
49+
KOTLIN = "kotlin"
50+
"""Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.telemetry_attributes.TelemetrySdkLanguageValues.KOTLIN`."""
4951
NODEJS = "nodejs"
5052
"""Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.telemetry_attributes.TelemetrySdkLanguageValues.NODEJS`."""
5153
PHP = "php"

opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/metrics/cicd_metrics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def create_cicd_system_errors(meter: Meter) -> Counter:
8181
"""
8282
The number of workers on the CI/CD system by state
8383
Instrument: updowncounter
84-
Unit: {count}
84+
Unit: {worker}
8585
"""
8686

8787

@@ -90,5 +90,5 @@ def create_cicd_worker_count(meter: Meter) -> UpDownCounter:
9090
return meter.create_up_down_counter(
9191
name=CICD_WORKER_COUNT,
9292
description="The number of workers on the CI/CD system by state.",
93-
unit="{count}",
93+
unit="{worker}",
9494
)

opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/metrics/otel_metrics.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@ def create_otel_sdk_span_ended_count(meter: Meter) -> Counter:
422422
The number of created spans with `recording=true` for which the end operation has not been called yet
423423
Instrument: updowncounter
424424
Unit: {span}
425+
Note: Non-recording spans are not counted, hence `otel.span.sampling_result` can only take values `RECORD_ONLY` and `RECORD_AND_SAMPLE`, not `DROP`.
425426
"""
426427

427428

opentelemetry-semantic-conventions/src/opentelemetry/semconv/attributes/db_attributes.py

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,29 @@
2828

2929
DB_OPERATION_BATCH_SIZE: Final = "db.operation.batch.size"
3030
"""
31-
The number of queries included in a batch operation.
32-
Note: Operations are only considered batches when they contain two or more operations, and so `db.operation.batch.size` SHOULD never be `1`.
31+
The number of database operations included in a batch operation.
32+
Note: Except for empty batch requests described below, a batch operation contains two
33+
or more database operations explicitly submitted as separate operations in a single
34+
client call, protocol message, or database command.
35+
36+
Requests to batch APIs that contain only one operation SHOULD be modeled as single
37+
operations, not as batch operations.
38+
39+
A database call is not a batch operation solely because one operation accepts
40+
multiple operands, such as keys, rows, documents, points, or other data elements,
41+
including Redis [`MGET`](https://redis.io/docs/latest/commands/mget/) with
42+
multiple keys.
43+
44+
In batch APIs that execute the same parameterized operation with parameter sets,
45+
each parameter set represents one database operation for determining whether the
46+
request is a batch operation. Requests with only one parameter set SHOULD be modeled
47+
as single operations, not as batch operations.
48+
49+
`db.operation.batch.size` SHOULD be set to the number of operations in the batch.
50+
It SHOULD NOT be set for non-batch operations.
51+
52+
A request to execute a batch operation with no operations SHOULD also be treated
53+
as a batch operation, and `db.operation.batch.size` SHOULD be set to `0`.
3354
"""
3455

3556
DB_OPERATION_NAME: Final = "db.operation.name"

opentelemetry-semantic-conventions/src/opentelemetry/semconv/attributes/k8s_attributes.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@
8282
The annotation placed on the DaemonSet, the `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
8383
Note: Examples:
8484
85-
- A label `replicas` with value `1` SHOULD be recorded
85+
- An annotation `replicas` with value `1` SHOULD be recorded
8686
as the `k8s.daemonset.annotation.replicas` attribute with value `"1"`.
87-
- A label `data` with empty string value SHOULD be recorded as
87+
- An annotation `data` with empty string value SHOULD be recorded as
8888
the `k8s.daemonset.annotation.data` attribute with value `""`.
8989
"""
9090

@@ -95,7 +95,7 @@
9595
9696
- A label `app` with value `guestbook` SHOULD be recorded
9797
as the `k8s.daemonset.label.app` attribute with value `"guestbook"`.
98-
- A label `data` with empty string value SHOULD be recorded as
98+
- A label `injected` with empty string value SHOULD be recorded as
9999
the `k8s.daemonset.label.injected` attribute with value `""`.
100100
"""
101101

@@ -114,9 +114,9 @@
114114
The annotation placed on the Deployment, the `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
115115
Note: Examples:
116116
117-
- A label `replicas` with value `1` SHOULD be recorded
117+
- An annotation `replicas` with value `1` SHOULD be recorded
118118
as the `k8s.deployment.annotation.replicas` attribute with value `"1"`.
119-
- A label `data` with empty string value SHOULD be recorded as
119+
- An annotation `data` with empty string value SHOULD be recorded as
120120
the `k8s.deployment.annotation.data` attribute with value `""`.
121121
"""
122122

@@ -125,7 +125,7 @@
125125
The label placed on the Deployment, the `<key>` being the label name, the value being the label value, even if the value is empty.
126126
Note: Examples:
127127
128-
- A label `replicas` with value `0` SHOULD be recorded
128+
- A label `app` with value `guestbook` SHOULD be recorded
129129
as the `k8s.deployment.label.app` attribute with value `"guestbook"`.
130130
- A label `injected` with empty string value SHOULD be recorded as
131131
the `k8s.deployment.label.injected` attribute with value `""`.
@@ -146,9 +146,9 @@
146146
The annotation placed on the Job, the `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
147147
Note: Examples:
148148
149-
- A label `number` with value `1` SHOULD be recorded
149+
- An annotation `number` with value `1` SHOULD be recorded
150150
as the `k8s.job.annotation.number` attribute with value `"1"`.
151-
- A label `data` with empty string value SHOULD be recorded as
151+
- An annotation `data` with empty string value SHOULD be recorded as
152152
the `k8s.job.annotation.data` attribute with value `""`.
153153
"""
154154

@@ -159,7 +159,7 @@
159159
160160
- A label `jobtype` with value `ci` SHOULD be recorded
161161
as the `k8s.job.label.jobtype` attribute with value `"ci"`.
162-
- A label `data` with empty string value SHOULD be recorded as
162+
- A label `automated` with empty string value SHOULD be recorded as
163163
the `k8s.job.label.automated` attribute with value `""`.
164164
"""
165165

@@ -178,9 +178,9 @@
178178
The annotation placed on the Namespace, the `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
179179
Note: Examples:
180180
181-
- A label `ttl` with value `0` SHOULD be recorded
181+
- An annotation `ttl` with value `0` SHOULD be recorded
182182
as the `k8s.namespace.annotation.ttl` attribute with value `"0"`.
183-
- A label `data` with empty string value SHOULD be recorded as
183+
- An annotation `data` with empty string value SHOULD be recorded as
184184
the `k8s.namespace.annotation.data` attribute with value `""`.
185185
"""
186186

@@ -302,9 +302,9 @@
302302
The annotation placed on the ReplicaSet, the `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
303303
Note: Examples:
304304
305-
- A label `replicas` with value `0` SHOULD be recorded
305+
- An annotation `replicas` with value `0` SHOULD be recorded
306306
as the `k8s.replicaset.annotation.replicas` attribute with value `"0"`.
307-
- A label `data` with empty string value SHOULD be recorded as
307+
- An annotation `data` with empty string value SHOULD be recorded as
308308
the `k8s.replicaset.annotation.data` attribute with value `""`.
309309
"""
310310

@@ -334,9 +334,9 @@
334334
The annotation placed on the StatefulSet, the `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
335335
Note: Examples:
336336
337-
- A label `replicas` with value `1` SHOULD be recorded
337+
- An annotation `replicas` with value `1` SHOULD be recorded
338338
as the `k8s.statefulset.annotation.replicas` attribute with value `"1"`.
339-
- A label `data` with empty string value SHOULD be recorded as
339+
- An annotation `data` with empty string value SHOULD be recorded as
340340
the `k8s.statefulset.annotation.data` attribute with value `""`.
341341
"""
342342

@@ -345,7 +345,7 @@
345345
The label placed on the StatefulSet, the `<key>` being the label name, the value being the label value, even if the value is empty.
346346
Note: Examples:
347347
348-
- A label `replicas` with value `0` SHOULD be recorded
348+
- A label `app` with value `guestbook` SHOULD be recorded
349349
as the `k8s.statefulset.label.app` attribute with value `"guestbook"`.
350350
- A label `injected` with empty string value SHOULD be recorded as
351351
the `k8s.statefulset.label.injected` attribute with value `""`.

opentelemetry-semantic-conventions/src/opentelemetry/semconv/attributes/telemetry_attributes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ class TelemetrySdkLanguageValues(Enum):
4949
"""go."""
5050
JAVA = "java"
5151
"""java."""
52+
KOTLIN = "kotlin"
53+
"""kotlin."""
5254
NODEJS = "nodejs"
5355
"""nodejs."""
5456
PHP = "php"

0 commit comments

Comments
 (0)