-
Notifications
You must be signed in to change notification settings - Fork 284
Expand file tree
/
Copy pathattributes.rb
More file actions
158 lines (137 loc) · 7.46 KB
/
Copy pathattributes.rb
File metadata and controls
158 lines (137 loc) · 7.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# 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 CONTAINER
# @!group Attribute Names
# The command used to run the container (i.e. the command name).
#
# If using embedded credentials or sensitive data, it is recommended to remove them to prevent potential leakage.
#
# @note Stability Level: development
CONTAINER_COMMAND = 'container.command'
# All the command arguments (including the command/executable itself) run by the container.
#
# @note Stability Level: development
CONTAINER_COMMAND_ARGS = 'container.command_args'
# The full command run by the container as a single string representing the full command.
#
# @note Stability Level: development
CONTAINER_COMMAND_LINE = 'container.command_line'
# Deprecated, use `cpu.mode` instead.
#
# @note Stability Level: development
# @deprecated Replaced by `cpu.mode`.
CONTAINER_CPU_STATE = 'container.cpu.state'
# The name of the CSI ([Container Storage Interface](https://github.com/container-storage-interface/spec)) plugin used by the volume.
#
# This can sometimes be referred to as a "driver" in CSI implementations. This should represent the `name` field of the GetPluginInfo RPC.
#
# @note Stability Level: development
CONTAINER_CSI_PLUGIN_NAME = 'container.csi.plugin.name'
# The unique volume ID returned by the CSI ([Container Storage Interface](https://github.com/container-storage-interface/spec)) plugin.
#
# This can sometimes be referred to as a "volume handle" in CSI implementations. This should represent the `Volume.volume_id` field in CSI spec.
#
# @note Stability Level: development
CONTAINER_CSI_VOLUME_ID = 'container.csi.volume.id'
# 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
#
# @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.
#
# 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.
#
# @note Stability Level: development
CONTAINER_IMAGE_ID = 'container.image.id'
# Name of the image the container was built on.
#
# @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: 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: 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
# for the state of the key.
#
# @example Usage
# CONTAINER_LABEL_LAMBDA.call('some-cool-key') #=> 'container.label.some-cool-key'
#
# Container labels, `<key>` being the label name, the value being the label value.
#
# For example, a docker container label `app` with value `nginx` SHOULD be recorded as the `container.label.app` attribute with value `"nginx"`.
#
# @note Stability Level: development
CONTAINER_LABEL_LAMBDA = ->(key) { "container.label.#{key}" }
# 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
# CONTAINER_LABELS_LAMBDA.call('some-cool-key') #=> 'container.labels.some-cool-key'
#
# Deprecated, use `container.label` instead.
#
# @note Stability Level: development
# @deprecated Replaced by `container.label`.
CONTAINER_LABELS_LAMBDA = ->(key) { "container.labels.#{key}" }
# Container name used by container runtime.
#
# @note Stability Level: development
CONTAINER_NAME = 'container.name'
# The container runtime managing this container.
#
# @note Stability Level: development
# @deprecated Replaced by `container.runtime.name`.
CONTAINER_RUNTIME = 'container.runtime'
# A description about the runtime which could include, for example details about the CRI/API version being used or other customizations.
#
# @note Stability Level: development
CONTAINER_RUNTIME_DESCRIPTION = 'container.runtime.description'
# The container runtime managing this container.
#
# @note Stability Level: development
CONTAINER_RUNTIME_NAME = 'container.runtime.name'
# The version of the runtime of this process, as returned by the runtime without modification.
#
# @note Stability Level: development
CONTAINER_RUNTIME_VERSION = 'container.runtime.version'
# @!endgroup
end
end
end
end