Skip to content

Commit 1292c80

Browse files
authored
Bump semantic conventions to 1.34.0 (#4599)
1 parent 6ea3c0f commit 1292c80

23 files changed

+123
-48
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2626
([#4593](https://github.com/open-telemetry/opentelemetry-python/pull/4593))
2727
- opentelemetry-test-utils: assert explicit bucket boundaries in histogram metrics
2828
([#4595](https://github.com/open-telemetry/opentelemetry-python/pull/4595))
29+
- Bump semantic conventions to 1.34.0
30+
([#4599](https://github.com/open-telemetry/opentelemetry-python/pull/4599))
2931

3032
## Version 1.33.0/0.54b0 (2025-05-09)
3133

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

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@
1515
from enum import Enum
1616
from typing import Final
1717

18+
AWS_BEDROCK_GUARDRAIL_ID: Final = "aws.bedrock.guardrail.id"
19+
"""
20+
The unique identifier of the AWS Bedrock Guardrail. A [guardrail](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html) helps safeguard and prevent unwanted behavior from model responses or user messages.
21+
"""
22+
23+
AWS_BEDROCK_KNOWLEDGE_BASE_ID: Final = "aws.bedrock.knowledge_base.id"
24+
"""
25+
The unique identifier of the AWS Bedrock Knowledge base. A [knowledge base](https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base.html) is a bank of information that can be queried by models to generate more relevant responses and augment prompts.
26+
"""
27+
1828
AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS: Final = (
1929
"aws.dynamodb.attribute_definitions"
2030
)
@@ -186,12 +196,22 @@
186196
The AWS extended request ID as returned in the response header `x-amz-id-2`.
187197
"""
188198

199+
AWS_KINESIS_STREAM_NAME: Final = "aws.kinesis.stream_name"
200+
"""
201+
The name of the AWS Kinesis [stream](https://docs.aws.amazon.com/streams/latest/dev/introduction.html) the request refers to. Corresponds to the `--stream-name` parameter of the Kinesis [describe-stream](https://docs.aws.amazon.com/cli/latest/reference/kinesis/describe-stream.html) operation.
202+
"""
203+
189204
AWS_LAMBDA_INVOKED_ARN: Final = "aws.lambda.invoked_arn"
190205
"""
191206
The full invoked ARN as provided on the `Context` passed to the function (`Lambda-Runtime-Invoked-Function-Arn` header on the `/runtime/invocation/next` applicable).
192207
Note: This may be different from `cloud.resource_id` if an alias is involved.
193208
"""
194209

210+
AWS_LAMBDA_RESOURCE_MAPPING_ID: Final = "aws.lambda.resource_mapping.id"
211+
"""
212+
The UUID of the [AWS Lambda EvenSource Mapping](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html). An event source is mapped to a lambda function. It's contents are read by Lambda and used to trigger a function. This isn't available in the lambda execution context or the lambda runtime environtment. This is going to be populated by the AWS SDK for each language when that UUID is present. Some of these operations are Create/Delete/Get/List/Update EventSourceMapping.
213+
"""
214+
195215
AWS_LOG_GROUP_ARNS: Final = "aws.log.group.arns"
196216
"""
197217
The Amazon Resource Name(s) (ARN) of the AWS log group(s).
@@ -290,6 +310,33 @@
290310
- [upload-part-copy](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html).
291311
"""
292312

313+
AWS_SECRETSMANAGER_SECRET_ARN: Final = "aws.secretsmanager.secret.arn"
314+
"""
315+
The ARN of the Secret stored in the Secrets Mangger.
316+
"""
317+
318+
AWS_SNS_TOPIC_ARN: Final = "aws.sns.topic.arn"
319+
"""
320+
The ARN of the AWS SNS Topic. An Amazon SNS [topic](https://docs.aws.amazon.com/sns/latest/dg/sns-create-topic.html) is a logical access point that acts as a communication channel.
321+
"""
322+
323+
AWS_SQS_QUEUE_URL: Final = "aws.sqs.queue.url"
324+
"""
325+
The URL of the AWS SQS Queue. It's a unique identifier for a queue in Amazon Simple Queue Service (SQS) and is used to access the queue and perform actions on it.
326+
"""
327+
328+
AWS_STEP_FUNCTIONS_ACTIVITY_ARN: Final = "aws.step_functions.activity.arn"
329+
"""
330+
The ARN of the AWS Step Functions Activity.
331+
"""
332+
333+
AWS_STEP_FUNCTIONS_STATE_MACHINE_ARN: Final = (
334+
"aws.step_functions.state_machine.arn"
335+
)
336+
"""
337+
The ARN of the AWS Step Functions State Machine.
338+
"""
339+
293340

294341
class AwsEcsLaunchtypeValues(Enum):
295342
EC2 = "ec2"

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

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

4040
CLOUD_REGION: Final = "cloud.region"
4141
"""
42-
The geographical region the resource is running.
42+
The geographical region within a cloud provider. When associated with a resource, this attribute specifies the region where the resource operates. When calling services or APIs deployed on a cloud, this attribute identifies the region where the called destination is deployed.
4343
Note: Refer to your provider's docs to see the available regions, for example [Alibaba Cloud regions](https://www.alibabacloud.com/help/doc-detail/40654.htm), [AWS regions](https://aws.amazon.com/about-aws/global-infrastructure/regions_az/), [Azure regions](https://azure.microsoft.com/global-infrastructure/geographies/), [Google Cloud regions](https://cloud.google.com/about/locations), or [Tencent Cloud regions](https://www.tencentcloud.com/document/product/213/6091).
4444
"""
4545

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

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

3737
CODE_FUNCTION: Final = "code.function"
3838
"""
39-
Deprecated: Replaced by `code.function.name`.
39+
Deprecated: Value should be included in `code.function.name` which is expected to be a fully-qualified name.
4040
"""
4141

4242
CODE_FUNCTION_NAME: Final = "code.function.name"

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106

107107
DB_COSMOSDB_OPERATION_TYPE: Final = "db.cosmosdb.operation_type"
108108
"""
109-
Deprecated: No replacement at this time.
109+
Deprecated: Removed, no replacement at this time.
110110
"""
111111

112112
DB_COSMOSDB_REGIONS_CONTACTED: Final = "db.cosmosdb.regions_contacted"
@@ -153,12 +153,12 @@
153153

154154
DB_INSTANCE_ID: Final = "db.instance.id"
155155
"""
156-
Deprecated: Deprecated, no general replacement at this time. For Elasticsearch, use `db.elasticsearch.node.name` instead.
156+
Deprecated: Removed, no general replacement at this time. For Elasticsearch, use `db.elasticsearch.node.name` instead.
157157
"""
158158

159159
DB_JDBC_DRIVER_CLASSNAME: Final = "db.jdbc.driver_classname"
160160
"""
161-
Deprecated: Removed as not used.
161+
Deprecated: Removed, no replacement at this time.
162162
"""
163163

164164
DB_MONGODB_COLLECTION: Final = "db.mongodb.collection"
@@ -168,7 +168,7 @@
168168

169169
DB_MSSQL_INSTANCE_NAME: Final = "db.mssql.instance_name"
170170
"""
171-
Deprecated: Deprecated, no replacement at this time.
171+
Deprecated: Removed, no replacement at this time.
172172
"""
173173

174174
DB_NAME: Final = "db.name"
@@ -278,7 +278,7 @@
278278

279279
DB_USER: Final = "db.user"
280280
"""
281-
Deprecated: No replacement at this time.
281+
Deprecated: Removed, no replacement at this time.
282282
"""
283283

284284

@@ -354,7 +354,7 @@ class DbCosmosdbConsistencyLevelValues(Enum):
354354

355355

356356
@deprecated(
357-
"The attribute db.cosmosdb.operation_type is deprecated - No replacement at this time"
357+
"The attribute db.cosmosdb.operation_type is deprecated - Removed, no replacement at this time"
358358
)
359359
class DbCosmosdbOperationTypeValues(Enum):
360360
BATCH = "batch"

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

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

1818
DEPLOYMENT_ENVIRONMENT: Final = "deployment.environment"
1919
"""
20-
Deprecated: Deprecated, use `deployment.environment.name` instead.
20+
Deprecated: Replaced by `deployment.environment.name`.
2121
"""
2222

2323
DEPLOYMENT_ENVIRONMENT_NAME: Final = "deployment.environment.name"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
> However, it may be appropriate for specific enterprise scenarios, such as kiosk devices or enterprise-managed devices, with appropriate compliance clearance.
3333
> Any instrumentation providing this identifier MUST implement it as an opt-in feature.
3434
>
35-
> See [`app.installation.id`](/docs/attributes-registry/app.md#app-installation-id) for a more privacy-preserving alternative.
35+
> See [`app.installation.id`](/docs/registry/attributes/app.md#app-installation-id) for a more privacy-preserving alternative.
3636
"""
3737

3838
DEVICE_MANUFACTURER: Final = "device.manufacturer"

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434

3535
ENDUSER_ROLE: Final = "enduser.role"
3636
"""
37-
Deprecated: Replaced by `user.roles` attribute.
37+
Deprecated: Use `user.roles` attribute instead.
3838
"""
3939

4040
ENDUSER_SCOPE: Final = "enduser.scope"
4141
"""
42-
Deprecated: Removed.
42+
Deprecated: Removed, no replacement at this time.
4343
"""

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@
4949
The reason code which shows how a feature flag value was determined.
5050
"""
5151

52+
FEATURE_FLAG_RESULT_VALUE: Final = "feature_flag.result.value"
53+
"""
54+
The evaluated value of the feature flag.
55+
Note: With some feature flag providers, feature flag results can be quite large or contain private or sensitive details.
56+
Because of this, `feature_flag.result.variant` is often the preferred attribute if it is available.
57+
58+
It may be desirable to redact or otherwise limit the size and scope of `feature_flag.result.value` if possible.
59+
Because the evaluated flag value is unstructured and may be any type, it is left to the instrumentation author to determine how best to achieve this.
60+
"""
61+
5262
FEATURE_FLAG_RESULT_VARIANT: Final = "feature_flag.result.variant"
5363
"""
5464
A semantic identifier for an evaluated flag value.

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

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,17 @@
3737
Deprecated: Removed, no replacement at this time.
3838
"""
3939

40+
GEN_AI_CONVERSATION_ID: Final = "gen_ai.conversation.id"
41+
"""
42+
The unique identifier for a conversation (session, thread), used to store and correlate messages within this conversation.
43+
"""
44+
45+
GEN_AI_DATA_SOURCE_ID: Final = "gen_ai.data_source.id"
46+
"""
47+
The data source identifier.
48+
Note: Data sources are used by AI agents and RAG applications to store grounding data. A data source may be an external database, object store, document collection, website, or any other storage system used by the GenAI agent or application. The `gen_ai.data_source.id` SHOULD match the identifier used by the GenAI system rather than a name specific to the external storage, such as a database or object store. Semantic conventions referencing `gen_ai.data_source.id` MAY also leverage additional attributes, such as `db.*`, to further identify and describe the data source.
49+
"""
50+
4051
GEN_AI_OPENAI_REQUEST_RESPONSE_FORMAT: Final = (
4152
"gen_ai.openai.request.response_format"
4253
)
@@ -46,7 +57,7 @@
4657

4758
GEN_AI_OPENAI_REQUEST_SEED: Final = "gen_ai.openai.request.seed"
4859
"""
49-
Deprecated: Replaced by `gen_ai.request.seed` attribute.
60+
Deprecated: Replaced by `gen_ai.request.seed`.
5061
"""
5162

5263
GEN_AI_OPENAI_REQUEST_SERVICE_TIER: Final = (
@@ -208,7 +219,7 @@
208219

209220
GEN_AI_USAGE_COMPLETION_TOKENS: Final = "gen_ai.usage.completion_tokens"
210221
"""
211-
Deprecated: Replaced by `gen_ai.usage.output_tokens` attribute.
222+
Deprecated: Replaced by `gen_ai.usage.output_tokens`.
212223
"""
213224

214225
GEN_AI_USAGE_INPUT_TOKENS: Final = "gen_ai.usage.input_tokens"
@@ -223,7 +234,7 @@
223234

224235
GEN_AI_USAGE_PROMPT_TOKENS: Final = "gen_ai.usage.prompt_tokens"
225236
"""
226-
Deprecated: Replaced by `gen_ai.usage.input_tokens` attribute.
237+
Deprecated: Replaced by `gen_ai.usage.input_tokens`.
227238
"""
228239

229240

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474

7575
HTTP_REQUEST_CONTENT_LENGTH: Final = "http.request_content_length"
7676
"""
77-
Deprecated: Replaced by `http.request.header.<key>`.
77+
Deprecated: Replaced by `http.request.header.content-length`.
7878
"""
7979

8080
HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED: Final = (
@@ -106,14 +106,14 @@
106106

107107
HTTP_RESPONSE_CONTENT_LENGTH: Final = "http.response_content_length"
108108
"""
109-
Deprecated: Replaced by `http.response.header.<key>`.
109+
Deprecated: hp.response.header.content-length.
110110
"""
111111

112112
HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED: Final = (
113113
"http.response_content_length_uncompressed"
114114
)
115115
"""
116-
Deprecated: Replace by `http.response.body.size`.
116+
Deprecated: Replaced by `http.response.body.size`.
117117
"""
118118

119119
HTTP_ROUTE: Final = "http.route"
@@ -123,7 +123,7 @@
123123

124124
HTTP_SCHEME: Final = "http.scheme"
125125
"""
126-
Deprecated: Replaced by `url.scheme` instead.
126+
Deprecated: Replaced by `url.scheme`.
127127
"""
128128

129129
HTTP_SERVER_NAME: Final = "http.server_name"
@@ -138,7 +138,7 @@
138138

139139
HTTP_TARGET: Final = "http.target"
140140
"""
141-
Deprecated: Split to `url.path` and `url.query.
141+
Deprecated: Split to `url.path` and `url.query`.
142142
"""
143143

144144
HTTP_URL: Final = "http.url"

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@
7474
"messaging.destination_publish.anonymous"
7575
)
7676
"""
77-
Deprecated: No replacement at this time.
77+
Deprecated: Removed. No replacement at this time.
7878
"""
7979

8080
MESSAGING_DESTINATION_PUBLISH_NAME: Final = (
8181
"messaging.destination_publish.name"
8282
)
8383
"""
84-
Deprecated: No replacement at this time.
84+
Deprecated: Removed. No replacement at this time.
8585
"""
8686

8787
MESSAGING_EVENTHUBS_CONSUMER_GROUP: Final = (

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

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

8080
NET_SOCK_PEER_NAME: Final = "net.sock.peer.name"
8181
"""
82-
Deprecated: Removed.
82+
Deprecated: Removed. No replacement at this time.
8383
"""
8484

8585
NET_SOCK_PEER_PORT: Final = "net.sock.peer.port"

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
@@ -207,7 +207,7 @@ class NetworkTransportValues(Enum):
207207
UNIX = "unix"
208208
"""Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.network_attributes.NetworkTransportValues.UNIX`."""
209209
QUIC = "quic"
210-
"""QUIC."""
210+
"""Deprecated in favor of stable :py:const:`opentelemetry.semconv.attributes.network_attributes.NetworkTransportValues.QUIC`."""
211211

212212

213213
@deprecated(

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@
4444

4545
OTEL_LIBRARY_NAME: Final = "otel.library.name"
4646
"""
47-
Deprecated: Use the `otel.scope.name` attribute.
47+
Deprecated: Replaced by `otel.scope.name`.
4848
"""
4949

5050
OTEL_LIBRARY_VERSION: Final = "otel.library.version"
5151
"""
52-
Deprecated: Use the `otel.scope.version` attribute.
52+
Deprecated: Replaced by `otel.scope.version`.
5353
"""
5454

5555
OTEL_SCOPE_NAME: Final = "otel.scope.name"

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@
3030

3131
PROCESS_COMMAND_ARGS: Final = "process.command_args"
3232
"""
33-
All the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main`.
33+
All the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main`. SHOULD NOT be collected by default unless there is sanitization that excludes sensitive data.
3434
"""
3535

3636
PROCESS_COMMAND_LINE: Final = "process.command_line"
3737
"""
38-
The full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead.
38+
The full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead. SHOULD NOT be collected by default unless there is sanitization that excludes sensitive data.
3939
"""
4040

4141
PROCESS_CONTEXT_SWITCH_TYPE: Final = "process.context_switch_type"

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
SYSTEM_NETWORK_STATE: Final = "system.network.state"
6161
"""
62-
Deprecated: Removed, report network connection state with `network.connection.state` attribute.
62+
Deprecated: Replaced by `network.connection.state`.
6363
"""
6464

6565
SYSTEM_PAGING_DIRECTION: Final = "system.paging.direction"
@@ -146,7 +146,7 @@ class SystemMemoryStateValues(Enum):
146146

147147

148148
@deprecated(
149-
"The attribute system.network.state is deprecated - Removed, report network connection state with `network.connection.state` attribute"
149+
"The attribute system.network.state is deprecated - Replaced by `network.connection.state`"
150150
)
151151
class SystemNetworkStateValues(Enum):
152152
CLOSE = "close"

0 commit comments

Comments
 (0)