Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion semantic_conventions/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ task default: default_tasks
desc 'update semantic conventions'
task generate: %i[update_spec_version_constant generate_require_rollups]

SPEC_VERSION = '1.41.1'
SPEC_VERSION = '1.42.0'
OTEL_WEAVER_VERSION = 'v0.22.1'
semconv_source_dir = Pathname.new('./tmp/semconvrepo')
semconv_output_dir = Pathname.new('./lib/opentelemetry/semconv')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
module OpenTelemetry
module SemanticConventions
# Version of the OpenTelemetry Semantic Conventions from which this library was generated.
SPEC_VERSION = '1.41.1'
SPEC_VERSION = '1.42.0'
# Release version of this gem. May not match SPEC_VERSION until gem is released after a spec update.
VERSION = '1.41.0'
end
Expand Down
21 changes: 21 additions & 0 deletions semantic_conventions/lib/opentelemetry/semconv/container.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# frozen_string_literal: true

# Copyright The OpenTelemetry Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

# This file was autogenerated. Do not edit it by hand.

require_relative 'container/attributes'
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# frozen_string_literal: true

# Copyright The OpenTelemetry Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#
# This file was autogenerated. Do not edit it by hand.

module OpenTelemetry
module SemConv
module CONTAINER
# @!group Attribute Names

# 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.
#
# @note Stability Level: stable
CONTAINER_ID = 'container.id'

# Name of the image the container was built on.
#
# @note Stability Level: stable
CONTAINER_IMAGE_NAME = 'container.image.name'

# Repo digests of the container image as provided by the container runtime.
#
# [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.
#
# @note Stability Level: stable
CONTAINER_IMAGE_REPO_DIGESTS = 'container.image.repo_digests'

# 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>`.
#
# @note Stability Level: stable
CONTAINER_IMAGE_TAGS = 'container.image.tags'

# @!endgroup
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module ANDROID

# This attribute represents the state of the application.
#
# 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.
# 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.
#
# @note Stability Level: development
ANDROID_APP_STATE = 'android.app.state'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ module APP
# @note Stability Level: development
APP_BUILD_ID = 'app.build_id'

# A unique identifier representing an instance of an end-user facing app crash.
#
# Its value MAY be meaningful and be used as a reference for telemetry and metadata recorded by
# the same instrumentation (e.g. it is an ID generated by an external source that captured the crash).
# It MAY come from a source external to the instrumentation such that it can be used to look up additional
# data from other sources as well as facilitate deduplication.
#
# @note Stability Level: development
APP_CRASH_ID = 'app.crash.id'

# A unique identifier representing the installation of an application on a specific device
#
# Its value SHOULD persist across launches of the same application installation, including through application upgrades.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ module BROWSER
# @note Stability Level: development
BROWSER_BRANDS = 'browser.brands'

# Absolute URL of the current browser document according to [RFC3986](https://www.rfc-editor.org/rfc/rfc3986).
#
# @note Stability Level: development
BROWSER_DOCUMENT_URL_FULL = 'browser.document.url.full'

# Preferred language of the user using the browser
#
# This value is intended to be taken from the Navigator API `navigator.language`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,22 +81,22 @@ module CICD
# @note Stability Level: development
CICD_PIPELINE_TASK_TYPE = 'cicd.pipeline.task.type'

# The name of a component of the CICD system.
# The name of a component of the CI/CD system.
#
# @note Stability Level: development
CICD_SYSTEM_COMPONENT = 'cicd.system.component'

# The unique identifier of a worker within a CICD system.
# The unique identifier of a worker within a CI/CD system.
#
# @note Stability Level: development
CICD_WORKER_ID = 'cicd.worker.id'

# The name of a worker within a CICD system.
# The name of a worker within a CI/CD system.
#
# @note Stability Level: development
CICD_WORKER_NAME = 'cicd.worker.name'

# The state of a CICD worker / agent.
# The state of a CI/CD worker / agent.
#
# @note Stability Level: development
CICD_WORKER_STATE = 'cicd.worker.state'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ module CICD
# @note Stability Level: development
CICD_PIPELINE_RUN_ERRORS = 'cicd.pipeline.run.errors'

# The number of errors in a component of the CICD system (eg. controller, scheduler, agent).
# The number of errors in a component of the CI/CD system (eg. controller, scheduler, agent).
#
# Errors in pipeline run execution are explicitly excluded. Ie a test failure is not counted in this metric.
#
# @note Stability Level: development
CICD_SYSTEM_ERRORS = 'cicd.system.errors'

# The number of workers on the CICD system by state.
# The number of workers on the CI/CD system by state.
#
# @note Stability Level: development
CICD_WORKER_COUNT = 'cicd.worker.count'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ module CONTAINER

# 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.
#
# @note Stability Level: release_candidate
# @note Stability Level: stable
#
# @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::CONTAINER::CONTAINER_ID}.
CONTAINER_ID = 'container.id'

# Runtime specific image identifier. Usually a hash algorithm followed by a UUID.
Expand All @@ -77,19 +79,25 @@ module CONTAINER

# Name of the image the container was built on.
#
# @note Stability Level: release_candidate
# @note Stability Level: stable
#
# @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::CONTAINER::CONTAINER_IMAGE_NAME}.
CONTAINER_IMAGE_NAME = 'container.image.name'

# Repo digests of the container image as provided by the container runtime.
#
# [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.
#
# @note Stability Level: release_candidate
# @note Stability Level: stable
#
# @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::CONTAINER::CONTAINER_IMAGE_REPO_DIGESTS}.
CONTAINER_IMAGE_REPO_DIGESTS = 'container.image.repo_digests'

# 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>`.
#
# @note Stability Level: release_candidate
# @note Stability Level: stable
#
# @deprecated Now available in the stable namespace at {OpenTelemetry::SemConv::CONTAINER::CONTAINER_IMAGE_TAGS}.
CONTAINER_IMAGE_TAGS = 'container.image.tags'

# Must be called with a key for the full attribute name. See notes below about the expectations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ module Incubating
module CONTAINER
# @!group Metrics Names

# Total CPU time consumed.
# CPU time consumed.
#
# Total CPU time consumed by the specific container on all available CPU cores
# CPU time consumed by the specific container on all available CPU cores
#
# @note Stability Level: development
# @note Stability Level: release_candidate
CONTAINER_CPU_TIME = 'container.cpu.time'

# Container's CPU usage, measured in cpus. Range from 0 to the number of allocatable CPUs.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module CPU

# The mode of the CPU
#
# @note Stability Level: development
# @note Stability Level: release_candidate
CPU_MODE = 'cpu.mode'

# @!endgroup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,21 @@ module FILE
# @note Stability Level: development
FILE_INODE = 'file.inode'

# The lock mechanism such as noted by [POSIX](https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html)
#
# @note Stability Level: development
FILE_LOCK_MECHANISM = 'file.lock.mechanism'

# Mode of lock or operation such as documented by [POSIX](https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html)
#
# @note Stability Level: development
FILE_LOCK_MODE = 'file.lock.mode'

# The lock type as represented by i.e. [POSIX](https://pubs.opengroup.org/onlinepubs/9699919799/functions/fcntl.html)'s l_type.
#
# @note Stability Level: development
FILE_LOCK_TYPE = 'file.lock.type'

# Mode of the file in octal representation.
#
# @note Stability Level: development
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,19 @@ module GCP
# @note Stability Level: development
GCP_GCE_INSTANCE_HOSTNAME = 'gcp.gce.instance.hostname'

# Must be called with a key for the full attribute name. See notes below about the expectations
# for the state of the key.
#
# @example Usage
# GCP_GCE_INSTANCE_LABELS_LAMBDA.call('some-cool-key') #=> 'gcp.gce.instance.labels.some-cool-key'
#
# GCE instance labels, `<key>` being the label name and the value being the label value.
#
# 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.
#
# @note Stability Level: development
GCP_GCE_INSTANCE_LABELS_LAMBDA = ->(key) { "gcp.gce.instance.labels.#{key}" }

# 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).
#
# @note Stability Level: development
Expand Down
Loading
Loading