Skip to content

Commit ff7df48

Browse files
chore: Upgrade to semconv 1.8.0 (#1028)
Co-authored-by: Francis Bogsanyi <[email protected]>
1 parent 9c031a1 commit ff7df48

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

semantic_conventions/Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require 'yard'
1010
require 'rubocop/rake_task'
1111
require 'tmpdir'
1212

13-
SPEC_VERSION = '1.6.0'
13+
SPEC_VERSION = '1.8.0'
1414

1515
RuboCop::RakeTask.new
1616

semantic_conventions/lib/opentelemetry/semantic_conventions/resource.rb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ module Resource
1313
# The cloud account ID the resource is assigned to
1414
CLOUD_ACCOUNT_ID = 'cloud.account.id'
1515

16-
# The geographical region the resource is running. 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/en-us/global-infrastructure/geographies/), or [Google Cloud regions](https://cloud.google.com/about/locations)
16+
# The geographical region the resource is running
17+
# @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/en-us/global-infrastructure/geographies/), [Google Cloud regions](https://cloud.google.com/about/locations), or [Tencent Cloud regions](https://intl.cloud.tencent.com/document/product/213/6091)
1718
CLOUD_REGION = 'cloud.region'
1819

1920
# Cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running
@@ -60,7 +61,7 @@ module Resource
6061
# @note See the [log stream ARN format documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format). One log group can contain several log streams, so these ARNs necessarily identify both a log group and a log stream
6162
AWS_LOG_STREAM_ARNS = 'aws.log.stream.arns'
6263

63-
# Container name
64+
# Container name used by container runtime
6465
CONTAINER_NAME = 'container.name'
6566

6667
# Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification). The UUID might be abbreviated
@@ -170,9 +171,12 @@ module Resource
170171
# The name of the Pod
171172
K8S_POD_NAME = 'k8s.pod.name'
172173

173-
# The name of the Container in a Pod template
174+
# The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`)
174175
K8S_CONTAINER_NAME = 'k8s.container.name'
175176

177+
# Number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec
178+
K8S_CONTAINER_RESTART_COUNT = 'k8s.container.restart_count'
179+
176180
# The UID of the ReplicaSet
177181
K8S_REPLICASET_UID = 'k8s.replicaset.uid'
178182

semantic_conventions/lib/opentelemetry/semantic_conventions/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
module OpenTelemetry
88
module SemanticConventions
9-
VERSION = '1.6.1'
9+
VERSION = '1.8.0'
1010
end
1111
end

0 commit comments

Comments
 (0)