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 @@ -50,7 +50,7 @@ task default: default_tasks
desc 'update semantic conventions'
task generate: %i[update_spec_version_constant generate_require_rollups]

SPEC_VERSION = '1.38.0'
SPEC_VERSION = '1.39.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.38.0'
SPEC_VERSION = '1.39.0'
# Release version of this gem. May not match SPEC_VERSION until gem is released after a spec update.
VERSION = '1.37.1'
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ module DB
# Summary may be available to the instrumentation through
# instrumentation hooks or other means. If it is not available, instrumentations
# that support query parsing SHOULD generate a summary following
# [Generating query summary](/docs/database/database-spans.md#generating-a-summary-of-the-query)
# [Generating query summary](/docs/db/database-spans.md#generating-a-summary-of-the-query)
# section.
#
# @note Stability Level: stable
DB_QUERY_SUMMARY = 'db.query.summary'

# The database query being executed.
#
# For sanitization see [Sanitization of `db.query.text`](/docs/database/database-spans.md#sanitization-of-dbquerytext).
# For sanitization see [Sanitization of `db.query.text`](/docs/db/database-spans.md#sanitization-of-dbquerytext).
# For batch operations, if the individual operations are known to have the same query text then that query text SHOULD be used, otherwise all of the individual query texts SHOULD be concatenated with separator `; ` or some other database system specific separator if more applicable.
# Parameterized query text SHOULD NOT be sanitized. Even though parameterized query text can potentially have sensitive data, by using a parameterized query the user is giving a strong signal that any sensitive data will be passed as parameter values, and the benefit to observability of capturing the static part of the query text by default outweighs the risk.
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module ERROR
#
# If the operation has completed successfully, instrumentations SHOULD NOT set `error.type`.
#
# If a specific domain defines its own set of error identifiers (such as HTTP or gRPC status codes),
# If a specific domain defines its own set of error identifiers (such as HTTP or RPC status codes),
# it's RECOMMENDED to:
#
# - Use a domain-specific attribute
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ 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: development
# @note Stability Level: alpha
CONTAINER_ID = 'container.id'

# Runtime specific image identifier. Usually a hash algorithm followed by a UUID.
#
# Docker defines a sha256 of the image id; `container.image.id` corresponds to the `Image` field from the Docker container inspect [API](https://docs.docker.com/reference/api/engine/version/v1.43/#tag/Container/operation/ContainerInspect) endpoint.
# Docker defines a sha256 of the image id; `container.image.id` corresponds to the `Image` field from the Docker container inspect [API](https://docs.docker.com/reference/api/engine/version/v1.52/#tag/Container/operation/ContainerInspect) endpoint.
# K8s defines a link to the container registry repository with digest `"imageID": "registry.azurecr.io /namespace/service/dockerfile@sha256:bdeabd40c3a8a492eaf9e8e44d0ebbb84bac7ee25ac0cf8a7159d25f62555625"`.
# The ID is assigned by the container runtime and can vary in different environments. Consider using `oci.manifest.digest` if it is important to identify the same image in different environments/runtimes.
#
Expand All @@ -77,19 +77,19 @@ module CONTAINER

# Name of the image the container was built on.
#
# @note Stability Level: development
# @note Stability Level: alpha
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.43/#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.
# [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: development
# @note Stability Level: alpha
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.43/#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>`.
# 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: development
# @note Stability Level: alpha
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 @@ -328,7 +328,7 @@ module DB
# Summary may be available to the instrumentation through
# instrumentation hooks or other means. If it is not available, instrumentations
# that support query parsing SHOULD generate a summary following
# [Generating query summary](/docs/database/database-spans.md#generating-a-summary-of-the-query)
# [Generating query summary](/docs/db/database-spans.md#generating-a-summary-of-the-query)
# section.
#
# @note Stability Level: stable
Expand All @@ -338,7 +338,7 @@ module DB

# The database query being executed.
#
# For sanitization see [Sanitization of `db.query.text`](/docs/database/database-spans.md#sanitization-of-dbquerytext).
# For sanitization see [Sanitization of `db.query.text`](/docs/db/database-spans.md#sanitization-of-dbquerytext).
# For batch operations, if the individual operations are known to have the same query text then that query text SHOULD be used, otherwise all of the individual query texts SHOULD be concatenated with separator `; ` or some other database system specific separator if more applicable.
# Parameterized query text SHOULD NOT be sanitized. Even though parameterized query text can potentially have sensitive data, by using a parameterized query the user is giving a strong signal that any sensitive data will be passed as parameter values, and the benefit to observability of capturing the static part of the query text by default outweighs the risk.
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module ERROR
#
# If the operation has completed successfully, instrumentations SHOULD NOT set `error.type`.
#
# If a specific domain defines its own set of error identifiers (such as HTTP or gRPC status codes),
# If a specific domain defines its own set of error identifiers (such as HTTP or RPC status codes),
# it's RECOMMENDED to:
#
# - Use a domain-specific attribute
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ module GEN_AI
# @deprecated Removed, no replacement at this time.
GEN_AI_PROMPT = 'gen_ai.prompt'

# The name of the prompt that uniquely identifies it.
#
# @note Stability Level: development
GEN_AI_PROMPT_NAME = 'gen_ai.prompt.name'

# The Generative AI provider as identified by the client or server instrumentation.
#
# The attribute SHOULD be set based on the instrumentation's best
Expand Down
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 'jsonrpc/attributes'
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 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 Incubating
module JSONRPC
# @!group Attribute Names

# Protocol version, as specified in the `jsonrpc` property of the request and its corresponding response.
#
# @note Stability Level: development
JSONRPC_PROTOCOL_VERSION = 'jsonrpc.protocol.version'

# A string representation of the `id` property of the request and its corresponding response.
#
# Under the [JSON-RPC specification](https://www.jsonrpc.org/specification), the `id` property may be a string, number, null, or omitted entirely. When omitted, the request is treated as a notification. Using `null` is not equivalent to omitting the `id`, but it is discouraged.
# Instrumentations SHOULD NOT capture this attribute when the `id` is `null` or omitted.
#
# @note Stability Level: development
JSONRPC_REQUEST_ID = 'jsonrpc.request.id'

# @!endgroup
end
end
end
end
Loading