opentelemetry-semantic_conventions 1.40.0 → 1.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/README.md +11 -4
  4. data/lib/opentelemetry/semantic_conventions/version.rb +2 -2
  5. data/lib/opentelemetry/semconv/container/attributes.rb +51 -0
  6. data/lib/opentelemetry/semconv/container.rb +21 -0
  7. data/lib/opentelemetry/semconv/deployment/attributes.rb +42 -0
  8. data/lib/opentelemetry/semconv/deployment.rb +21 -0
  9. data/lib/opentelemetry/semconv/error/attributes.rb +6 -0
  10. data/lib/opentelemetry/semconv/exception/attributes.rb +6 -0
  11. data/lib/opentelemetry/semconv/incubating/android/attributes.rb +1 -1
  12. data/lib/opentelemetry/semconv/incubating/app/attributes.rb +10 -0
  13. data/lib/opentelemetry/semconv/incubating/aws/attributes.rb +2 -2
  14. data/lib/opentelemetry/semconv/incubating/browser/attributes.rb +5 -0
  15. data/lib/opentelemetry/semconv/incubating/cicd/attributes.rb +6 -4
  16. data/lib/opentelemetry/semconv/incubating/cicd/metrics.rb +2 -2
  17. data/lib/opentelemetry/semconv/incubating/container/attributes.rb +13 -5
  18. data/lib/opentelemetry/semconv/incubating/container/metrics.rb +3 -3
  19. data/lib/opentelemetry/semconv/incubating/cpu/attributes.rb +1 -1
  20. data/lib/opentelemetry/semconv/incubating/deployment/attributes.rb +3 -1
  21. data/lib/opentelemetry/semconv/incubating/error/attributes.rb +6 -0
  22. data/lib/opentelemetry/semconv/incubating/exception/attributes.rb +6 -0
  23. data/lib/opentelemetry/semconv/incubating/file/attributes.rb +15 -0
  24. data/lib/opentelemetry/semconv/incubating/gcp/attributes.rb +13 -0
  25. data/lib/opentelemetry/semconv/incubating/gen_ai/attributes.rb +96 -22
  26. data/lib/opentelemetry/semconv/incubating/gen_ai/metrics.rb +21 -0
  27. data/lib/opentelemetry/semconv/incubating/go/attributes.rb +19 -0
  28. data/lib/opentelemetry/semconv/incubating/go/metrics.rb +21 -0
  29. data/lib/opentelemetry/semconv/incubating/graphql/attributes.rb +1 -1
  30. data/lib/opentelemetry/semconv/incubating/hw/attributes.rb +1 -1
  31. data/lib/opentelemetry/semconv/incubating/k8s/attributes.rb +261 -49
  32. data/lib/opentelemetry/semconv/incubating/k8s/metrics.rb +258 -90
  33. data/lib/opentelemetry/semconv/incubating/mcp/attributes.rb +4 -0
  34. data/lib/opentelemetry/semconv/incubating/mcp/metrics.rb +4 -0
  35. data/lib/opentelemetry/semconv/incubating/openai/attributes.rb +4 -0
  36. data/lib/opentelemetry/semconv/incubating/openshift/metrics.rb +20 -20
  37. data/lib/opentelemetry/semconv/incubating/otel/attributes.rb +3 -1
  38. data/lib/opentelemetry/semconv/incubating/otel/metrics.rb +22 -3
  39. data/lib/opentelemetry/semconv/incubating/process/attributes.rb +48 -35
  40. data/lib/opentelemetry/semconv/incubating/process/metrics.rb +1 -1
  41. data/lib/opentelemetry/semconv/incubating/service/attributes.rb +3 -2
  42. data/lib/opentelemetry/semconv/incubating/system/attributes.rb +5 -0
  43. data/lib/opentelemetry/semconv/incubating/system/metrics.rb +43 -0
  44. data/lib/opentelemetry/semconv/incubating/telemetry/attributes.rb +6 -2
  45. data/lib/opentelemetry/semconv/incubating/url/attributes.rb +6 -4
  46. data/lib/opentelemetry/semconv/incubating/v8js/attributes.rb +5 -0
  47. data/lib/opentelemetry/semconv/incubating/v8js/metrics.rb +16 -3
  48. data/lib/opentelemetry/semconv/k8s/attributes.rb +517 -0
  49. data/lib/opentelemetry/semconv/k8s.rb +21 -0
  50. data/lib/opentelemetry/semconv/otel/attributes.rb +7 -0
  51. data/lib/opentelemetry/semconv/service/attributes.rb +2 -1
  52. data/lib/opentelemetry/semconv/telemetry/attributes.rb +13 -0
  53. data/lib/opentelemetry/semconv/url/attributes.rb +6 -4
  54. data/lib/opentelemetry/semconv.rb +141 -0
  55. data/lib/opentelemetry-semantic_conventions.rb +1 -0
  56. metadata +11 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ffb65318e9077b70e39094e8e36a040324a86efc2867623ecca7dafc65a9dfa2
4
- data.tar.gz: ed3108a7b4bda42719148657e18a5c9eb4d88546901f4bb54c7ed011cb1ec01f
3
+ metadata.gz: dc7a3272858c8f6b81b0bf6fe79daaf2dbe86ea9998cdf8d9de9931ae39f8a78
4
+ data.tar.gz: 55c64947141573ee3c72b2e563c98aab71d84bf86a50076513da34ab552cf299
5
5
  SHA512:
6
- metadata.gz: 42a11f6d13e431ddf77031dc2feee263fb262992977775b95ec55b6983f9aa620f982fed217d5c53ba34d852e3a8aca96de76ebd22c66e5d37de8a6eec5868e0
7
- data.tar.gz: 72f1d1a8d50aea38822821325f5c311a9ae1e9f1e92c2f79d7670bf7480534bcd60a8cb3052152331d3d3e3f780eabc536e9d4dc1bd1e484169b9123a7c1c21c
6
+ metadata.gz: 581dc30386c954d919f3cb0ea205b2230f11e78035b92e68b6e79ebea143aa791aeab0f8c16f15730f92140f4f17e45b6189620839c0813f6022ae9c1d14eabc
7
+ data.tar.gz: ad1f871f3bfae12f3ab40f86ba999c8e759d1e16304c68353c52ab8da6abca50c58f9c46ecfb38189fc8128210309651a45133124906e65a0e32f1466717823a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release History: opentelemetry-semantic_conventions
2
2
 
3
+ ### v1.42.0 / 2026-07-07
4
+
5
+ * ADDED: Autoload namespaces so a single require exposes all constants (#2204)
6
+ * ADDED: Update dependency open-telemetry/semantic-conventions to v1.42.0 (#2195)
7
+
8
+ ### v1.41.0 / 2026-06-10
9
+
10
+ * ADDED: Update dependency open-telemetry/semantic-conventions to v1.41.1 (#2184)
11
+
3
12
  ### v1.40.0 / 2026-06-09
4
13
 
5
14
  * ADDED: Update dependency open-telemetry/semantic-conventions to v1.40.0 (#2173)
data/README.md CHANGED
@@ -55,12 +55,19 @@ These constants will be preserved to avoid breaking changes for users who rely
55
55
  on the old constants. These constants do not differentiate between stable and
56
56
  unstable constants. New constants will not be added to this namespace.
57
57
 
58
- We recommend you require only the files that contain the constants you are going
59
- to use. For example, if you were creating instrumentation for an HTTP Client
60
- that emits only stable conventions, you would likely require:
58
+ Require the gem once and reference any constant directly. Each namespace is
59
+ registered with Ruby's `autoload`, so the file backing a namespace is only loaded
60
+ the first time you reference one of its constants — you don't pay to load
61
+ conventions you never use.
61
62
 
62
63
  ```rb
63
- require 'opentelemetry/semconv/http'
64
+ require 'opentelemetry-semantic_conventions'
65
+
66
+ # Stable
67
+ OpenTelemetry::SemConv::HTTP::HTTP_REQUEST_METHOD # => 'http.request.method'
68
+
69
+ # Incubating (experimental/deprecated)
70
+ OpenTelemetry::SemConv::Incubating::GEN_AI::GEN_AI_SYSTEM
64
71
  ```
65
72
 
66
73
  If you want to require all of the 1.11.0 constants, you can use:
@@ -7,8 +7,8 @@
7
7
  module OpenTelemetry
8
8
  module SemanticConventions
9
9
  # Version of the OpenTelemetry Semantic Conventions from which this library was generated.
10
- SPEC_VERSION = '1.40.0'
10
+ SPEC_VERSION = '1.42.0'
11
11
  # Release version of this gem. May not match SPEC_VERSION until gem is released after a spec update.
12
- VERSION = '1.40.0'
12
+ VERSION = '1.42.0'
13
13
  end
14
14
  end
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright The OpenTelemetry Authors
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+ #
17
+ # SPDX-License-Identifier: Apache-2.0
18
+ #
19
+ # This file was autogenerated. Do not edit it by hand.
20
+
21
+ module OpenTelemetry
22
+ module SemConv
23
+ module CONTAINER
24
+ # @!group Attribute Names
25
+
26
+ # Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/containers/run/#container-identification). The UUID might be abbreviated.
27
+ #
28
+ # @note Stability Level: stable
29
+ CONTAINER_ID = 'container.id'
30
+
31
+ # Name of the image the container was built on.
32
+ #
33
+ # @note Stability Level: stable
34
+ CONTAINER_IMAGE_NAME = 'container.image.name'
35
+
36
+ # Repo digests of the container image as provided by the container runtime.
37
+ #
38
+ # [Docker](https://docs.docker.com/reference/api/engine/version/v1.52/#tag/Image/operation/ImageInspect) and [CRI](https://github.com/kubernetes/cri-api/blob/c75ef5b473bbe2d0a4fc92f82235efd665ea8e9f/pkg/apis/runtime/v1/api.proto#L1237-L1238) report those under the `RepoDigests` field.
39
+ #
40
+ # @note Stability Level: stable
41
+ CONTAINER_IMAGE_REPO_DIGESTS = 'container.image.repo_digests'
42
+
43
+ # Container image tags. An example can be found in [Docker Image Inspect](https://docs.docker.com/reference/api/engine/version/v1.52/#tag/Image/operation/ImageInspect). Should be only the `<tag>` section of the full name for example from `registry.example.com/my-org/my-image:<tag>`.
44
+ #
45
+ # @note Stability Level: stable
46
+ CONTAINER_IMAGE_TAGS = 'container.image.tags'
47
+
48
+ # @!endgroup
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright The OpenTelemetry Authors
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+ #
17
+ # SPDX-License-Identifier: Apache-2.0
18
+
19
+ # This file was autogenerated. Do not edit it by hand.
20
+
21
+ require_relative 'container/attributes'
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright The OpenTelemetry Authors
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+ #
17
+ # SPDX-License-Identifier: Apache-2.0
18
+ #
19
+ # This file was autogenerated. Do not edit it by hand.
20
+
21
+ module OpenTelemetry
22
+ module SemConv
23
+ module DEPLOYMENT
24
+ # @!group Attribute Names
25
+
26
+ # Name of the [deployment environment](https://wikipedia.org/wiki/Deployment_environment) (aka deployment tier).
27
+ #
28
+ # `deployment.environment.name` does not affect the uniqueness constraints defined through
29
+ # the `service.namespace`, `service.name` and `service.instance.id` resource attributes.
30
+ # This implies that resources carrying the following attribute combinations MUST be
31
+ # considered to be identifying the same service:
32
+ #
33
+ # - `service.name=frontend`, `deployment.environment.name=production`
34
+ # - `service.name=frontend`, `deployment.environment.name=staging`.
35
+ #
36
+ # @note Stability Level: stable
37
+ DEPLOYMENT_ENVIRONMENT_NAME = 'deployment.environment.name'
38
+
39
+ # @!endgroup
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright The OpenTelemetry Authors
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+ #
17
+ # SPDX-License-Identifier: Apache-2.0
18
+
19
+ # This file was autogenerated. Do not edit it by hand.
20
+
21
+ require_relative 'deployment/attributes'
@@ -30,6 +30,12 @@ module OpenTelemetry
30
30
  # When `error.type` is set to a type (e.g., an exception type), its
31
31
  # canonical class name identifying the type within the artifact SHOULD be used.
32
32
  #
33
+ # If the recorded error type is a wrapper that is not meaningful for
34
+ # failure classification, instrumentation MAY use the type of the inner
35
+ # error instead. For example, in Go, errors created with `fmt.Errorf`
36
+ # using `%w` MAY be unwrapped when the wrapper type does not help
37
+ # classify the failure.
38
+ #
33
39
  # Instrumentations SHOULD document the list of errors they report.
34
40
  #
35
41
  # The cardinality of `error.type` within one instrumentation library SHOULD be low.
@@ -43,6 +43,12 @@ module OpenTelemetry
43
43
 
44
44
  # The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it.
45
45
  #
46
+ # If the recorded exception type is a wrapper that is not meaningful for
47
+ # failure classification, instrumentation MAY use the type of the inner
48
+ # exception instead. For example, in Go, errors created with `fmt.Errorf`
49
+ # using `%w` MAY be unwrapped when the wrapper type does not help
50
+ # classify the failure.
51
+ #
46
52
  # @note Stability Level: stable
47
53
  EXCEPTION_TYPE = 'exception.type'
48
54
 
@@ -26,7 +26,7 @@ module OpenTelemetry
26
26
 
27
27
  # This attribute represents the state of the application.
28
28
  #
29
- # The Android lifecycle states are defined in [Activity lifecycle callbacks](https://developer.android.com/guide/components/activities/activity-lifecycle#lc), and from which the `OS identifiers` are derived.
29
+ # The Android lifecycle states are defined in [Activity lifecycle callbacks](https://developer.android.com/guide/components/activities/activity-lifecycle#lifecycle-callbacks), and from which the `OS identifiers` are derived.
30
30
  #
31
31
  # @note Stability Level: development
32
32
  ANDROID_APP_STATE = 'android.app.state'
@@ -29,6 +29,16 @@ module OpenTelemetry
29
29
  # @note Stability Level: development
30
30
  APP_BUILD_ID = 'app.build_id'
31
31
 
32
+ # A unique identifier representing an instance of an end-user facing app crash.
33
+ #
34
+ # Its value MAY be meaningful and be used as a reference for telemetry and metadata recorded by
35
+ # the same instrumentation (e.g. it is an ID generated by an external source that captured the crash).
36
+ # It MAY come from a source external to the instrumentation such that it can be used to look up additional
37
+ # data from other sources as well as facilitate deduplication.
38
+ #
39
+ # @note Stability Level: development
40
+ APP_CRASH_ID = 'app.crash.id'
41
+
32
42
  # A unique identifier representing the installation of an application on a specific device
33
43
  #
34
44
  # Its value SHOULD persist across launches of the same application installation, including through application upgrades.
@@ -201,7 +201,7 @@ module OpenTelemetry
201
201
  # @note Stability Level: development
202
202
  AWS_LAMBDA_INVOKED_ARN = 'aws.lambda.invoked_arn'
203
203
 
204
- # 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.
204
+ # 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 environment. 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.
205
205
  #
206
206
  # @note Stability Level: development
207
207
  AWS_LAMBDA_RESOURCE_MAPPING_ID = 'aws.lambda.resource_mapping.id'
@@ -313,7 +313,7 @@ module OpenTelemetry
313
313
  # @note Stability Level: development
314
314
  AWS_S3_UPLOAD_ID = 'aws.s3.upload_id'
315
315
 
316
- # The ARN of the Secret stored in the Secrets Mangger
316
+ # The ARN of the Secret stored in the Secrets Manager
317
317
  #
318
318
  # @note Stability Level: development
319
319
  AWS_SECRETSMANAGER_SECRET_ARN = 'aws.secretsmanager.secret.arn'
@@ -31,6 +31,11 @@ module OpenTelemetry
31
31
  # @note Stability Level: development
32
32
  BROWSER_BRANDS = 'browser.brands'
33
33
 
34
+ # Absolute URL of the current browser document according to [RFC3986](https://www.rfc-editor.org/rfc/rfc3986).
35
+ #
36
+ # @note Stability Level: development
37
+ BROWSER_DOCUMENT_URL_FULL = 'browser.document.url.full'
38
+
34
39
  # Preferred language of the user using the browser
35
40
  #
36
41
  # This value is intended to be taken from the Navigator API `navigator.language`.
@@ -61,6 +61,8 @@ module OpenTelemetry
61
61
 
62
62
  # The unique identifier of a task run within a pipeline.
63
63
  #
64
+ # For a given pipeline run and task, the `cicd.pipeline.task.run.id` MUST be unique within that run. For the same task across different runs of the same pipeline, the `cicd.pipeline.task.run.id` MAY remain the same, enabling correlation of `cicd.pipeline.task.run.result` values across multiple pipeline runs.
65
+ #
64
66
  # @note Stability Level: development
65
67
  CICD_PIPELINE_TASK_RUN_ID = 'cicd.pipeline.task.run.id'
66
68
 
@@ -79,22 +81,22 @@ module OpenTelemetry
79
81
  # @note Stability Level: development
80
82
  CICD_PIPELINE_TASK_TYPE = 'cicd.pipeline.task.type'
81
83
 
82
- # The name of a component of the CICD system.
84
+ # The name of a component of the CI/CD system.
83
85
  #
84
86
  # @note Stability Level: development
85
87
  CICD_SYSTEM_COMPONENT = 'cicd.system.component'
86
88
 
87
- # The unique identifier of a worker within a CICD system.
89
+ # The unique identifier of a worker within a CI/CD system.
88
90
  #
89
91
  # @note Stability Level: development
90
92
  CICD_WORKER_ID = 'cicd.worker.id'
91
93
 
92
- # The name of a worker within a CICD system.
94
+ # The name of a worker within a CI/CD system.
93
95
  #
94
96
  # @note Stability Level: development
95
97
  CICD_WORKER_NAME = 'cicd.worker.name'
96
98
 
97
- # The state of a CICD worker / agent.
99
+ # The state of a CI/CD worker / agent.
98
100
  #
99
101
  # @note Stability Level: development
100
102
  CICD_WORKER_STATE = 'cicd.worker.state'
@@ -42,14 +42,14 @@ module OpenTelemetry
42
42
  # @note Stability Level: development
43
43
  CICD_PIPELINE_RUN_ERRORS = 'cicd.pipeline.run.errors'
44
44
 
45
- # The number of errors in a component of the CICD system (eg. controller, scheduler, agent).
45
+ # The number of errors in a component of the CI/CD system (eg. controller, scheduler, agent).
46
46
  #
47
47
  # Errors in pipeline run execution are explicitly excluded. Ie a test failure is not counted in this metric.
48
48
  #
49
49
  # @note Stability Level: development
50
50
  CICD_SYSTEM_ERRORS = 'cicd.system.errors'
51
51
 
52
- # The number of workers on the CICD system by state.
52
+ # The number of workers on the CI/CD system by state.
53
53
  #
54
54
  # @note Stability Level: development
55
55
  CICD_WORKER_COUNT = 'cicd.worker.count'
@@ -63,7 +63,9 @@ module OpenTelemetry
63
63
 
64
64
  # Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/containers/run/#container-identification). The UUID might be abbreviated.
65
65
  #
66
- # @note Stability Level: beta
66
+ # @note Stability Level: stable
67
+ #
68
+ # @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::CONTAINER::CONTAINER_ID}.
67
69
  CONTAINER_ID = 'container.id'
68
70
 
69
71
  # Runtime specific image identifier. Usually a hash algorithm followed by a UUID.
@@ -77,19 +79,25 @@ module OpenTelemetry
77
79
 
78
80
  # Name of the image the container was built on.
79
81
  #
80
- # @note Stability Level: beta
82
+ # @note Stability Level: stable
83
+ #
84
+ # @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::CONTAINER::CONTAINER_IMAGE_NAME}.
81
85
  CONTAINER_IMAGE_NAME = 'container.image.name'
82
86
 
83
87
  # Repo digests of the container image as provided by the container runtime.
84
88
  #
85
89
  # [Docker](https://docs.docker.com/reference/api/engine/version/v1.52/#tag/Image/operation/ImageInspect) and [CRI](https://github.com/kubernetes/cri-api/blob/c75ef5b473bbe2d0a4fc92f82235efd665ea8e9f/pkg/apis/runtime/v1/api.proto#L1237-L1238) report those under the `RepoDigests` field.
86
90
  #
87
- # @note Stability Level: beta
91
+ # @note Stability Level: stable
92
+ #
93
+ # @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::CONTAINER::CONTAINER_IMAGE_REPO_DIGESTS}.
88
94
  CONTAINER_IMAGE_REPO_DIGESTS = 'container.image.repo_digests'
89
95
 
90
96
  # Container image tags. An example can be found in [Docker Image Inspect](https://docs.docker.com/reference/api/engine/version/v1.52/#tag/Image/operation/ImageInspect). Should be only the `<tag>` section of the full name for example from `registry.example.com/my-org/my-image:<tag>`.
91
97
  #
92
- # @note Stability Level: beta
98
+ # @note Stability Level: stable
99
+ #
100
+ # @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::CONTAINER::CONTAINER_IMAGE_TAGS}.
93
101
  CONTAINER_IMAGE_TAGS = 'container.image.tags'
94
102
 
95
103
  # Must be called with a key for the full attribute name. See notes below about the expectations
@@ -128,7 +136,7 @@ module OpenTelemetry
128
136
  # @deprecated Replaced by `container.runtime.name`.
129
137
  CONTAINER_RUNTIME = 'container.runtime'
130
138
 
131
- # A description about the runtime which could include, for example details about the CRI/API version being used or other customisations.
139
+ # A description about the runtime which could include, for example details about the CRI/API version being used or other customizations.
132
140
  #
133
141
  # @note Stability Level: development
134
142
  CONTAINER_RUNTIME_DESCRIPTION = 'container.runtime.description'
@@ -24,11 +24,11 @@ module OpenTelemetry
24
24
  module CONTAINER
25
25
  # @!group Metrics Names
26
26
 
27
- # Total CPU time consumed.
27
+ # CPU time consumed.
28
28
  #
29
- # Total CPU time consumed by the specific container on all available CPU cores
29
+ # CPU time consumed by the specific container on all available CPU cores
30
30
  #
31
- # @note Stability Level: development
31
+ # @note Stability Level: release_candidate
32
32
  CONTAINER_CPU_TIME = 'container.cpu.time'
33
33
 
34
34
  # Container's CPU usage, measured in cpus. Range from 0 to the number of allocatable CPUs.
@@ -31,7 +31,7 @@ module OpenTelemetry
31
31
 
32
32
  # The mode of the CPU
33
33
  #
34
- # @note Stability Level: development
34
+ # @note Stability Level: release_candidate
35
35
  CPU_MODE = 'cpu.mode'
36
36
 
37
37
  # @!endgroup
@@ -40,7 +40,9 @@ module OpenTelemetry
40
40
  # - `service.name=frontend`, `deployment.environment.name=production`
41
41
  # - `service.name=frontend`, `deployment.environment.name=staging`.
42
42
  #
43
- # @note Stability Level: development
43
+ # @note Stability Level: stable
44
+ #
45
+ # @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::DEPLOYMENT::DEPLOYMENT_ENVIRONMENT_NAME}.
44
46
  DEPLOYMENT_ENVIRONMENT_NAME = 'deployment.environment.name'
45
47
 
46
48
  # The id of the deployment.
@@ -43,6 +43,12 @@ module OpenTelemetry
43
43
  # When `error.type` is set to a type (e.g., an exception type), its
44
44
  # canonical class name identifying the type within the artifact SHOULD be used.
45
45
  #
46
+ # If the recorded error type is a wrapper that is not meaningful for
47
+ # failure classification, instrumentation MAY use the type of the inner
48
+ # error instead. For example, in Go, errors created with `fmt.Errorf`
49
+ # using `%w` MAY be unwrapped when the wrapper type does not help
50
+ # classify the failure.
51
+ #
46
52
  # Instrumentations SHOULD document the list of errors they report.
47
53
  #
48
54
  # The cardinality of `error.type` within one instrumentation library SHOULD be low.
@@ -48,6 +48,12 @@ module OpenTelemetry
48
48
 
49
49
  # The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it.
50
50
  #
51
+ # If the recorded exception type is a wrapper that is not meaningful for
52
+ # failure classification, instrumentation MAY use the type of the inner
53
+ # exception instead. For example, in Go, errors created with `fmt.Errorf`
54
+ # using `%w` MAY be unwrapped when the wrapper type does not help
55
+ # classify the failure.
56
+ #
51
57
  # @note Stability Level: stable
52
58
  #
53
59
  # @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::EXCEPTION::EXCEPTION_TYPE}.
@@ -87,6 +87,21 @@ module OpenTelemetry
87
87
  # @note Stability Level: development
88
88
  FILE_INODE = 'file.inode'
89
89
 
90
+ # The lock mechanism such as noted by [POSIX](https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html)
91
+ #
92
+ # @note Stability Level: development
93
+ FILE_LOCK_MECHANISM = 'file.lock.mechanism'
94
+
95
+ # Mode of lock or operation such as documented by [POSIX](https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html)
96
+ #
97
+ # @note Stability Level: development
98
+ FILE_LOCK_MODE = 'file.lock.mode'
99
+
100
+ # The lock type as represented by i.e. [POSIX](https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html)'s l_type.
101
+ #
102
+ # @note Stability Level: development
103
+ FILE_LOCK_TYPE = 'file.lock.type'
104
+
90
105
  # Mode of the file in octal representation.
91
106
  #
92
107
  # @note Stability Level: development
@@ -144,6 +144,19 @@ module OpenTelemetry
144
144
  # @note Stability Level: development
145
145
  GCP_GCE_INSTANCE_HOSTNAME = 'gcp.gce.instance.hostname'
146
146
 
147
+ # Must be called with a key for the full attribute name. See notes below about the expectations
148
+ # for the state of the key.
149
+ #
150
+ # @example Usage
151
+ # GCP_GCE_INSTANCE_LABELS_LAMBDA.call('some-cool-key') #=> 'gcp.gce.instance.labels.some-cool-key'
152
+ #
153
+ # GCE instance labels, `<key>` being the label name and the value being the label value.
154
+ #
155
+ # For example, a GCE instance label `team` with value `observability` SHOULD be recorded as the `gcp.gce.instance.labels.team` attribute with value `"observability"`. The `<key>` MUST be the exact GCE instance label key.
156
+ #
157
+ # @note Stability Level: development
158
+ GCP_GCE_INSTANCE_LABELS_LAMBDA = ->(key) { "gcp.gce.instance.labels.#{key}" }
159
+
147
160
  # The instance name of a GCE instance. This is the value provided by `host.name`, the visible name of the instance in the Cloud Console UI, and the prefix for the default hostname of the instance as defined by the [default internal DNS name](https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names).
148
161
  #
149
162
  # @note Stability Level: development