opentelemetry-semantic_conventions 1.11.0 → 1.36.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.
- checksums.yaml +4 -4
- data/.yardopts +2 -2
- data/CHANGELOG.md +4 -0
- data/lib/opentelemetry/semantic_conventions/resource.rb +258 -4
- data/lib/opentelemetry/semantic_conventions/trace.rb +432 -5
- data/lib/opentelemetry/semantic_conventions/version.rb +1 -1
- data/lib/opentelemetry/semantic_conventions.rb +13 -1
- data/lib/opentelemetry/semconv/aspnetcore/attributes.rb +97 -0
- data/lib/opentelemetry/semconv/aspnetcore/metrics.rb +83 -0
- data/lib/opentelemetry/semconv/aspnetcore.rb +22 -0
- data/lib/opentelemetry/semconv/client/attributes.rb +53 -0
- data/lib/opentelemetry/semconv/client.rb +21 -0
- data/lib/opentelemetry/semconv/code/attributes.rb +92 -0
- data/lib/opentelemetry/semconv/code.rb +21 -0
- data/lib/opentelemetry/semconv/db/attributes.rb +174 -0
- data/lib/opentelemetry/semconv/db/metrics.rb +36 -0
- data/lib/opentelemetry/semconv/db.rb +22 -0
- data/lib/opentelemetry/semconv/dotnet/attributes.rb +40 -0
- data/lib/opentelemetry/semconv/dotnet/metrics.rb +181 -0
- data/lib/opentelemetry/semconv/dotnet.rb +22 -0
- data/lib/opentelemetry/semconv/error/attributes.rb +61 -0
- data/lib/opentelemetry/semconv/error.rb +21 -0
- data/lib/opentelemetry/semconv/exception/attributes.rb +64 -0
- data/lib/opentelemetry/semconv/exception.rb +21 -0
- data/lib/opentelemetry/semconv/http/attributes.rb +164 -0
- data/lib/opentelemetry/semconv/http/metrics.rb +39 -0
- data/lib/opentelemetry/semconv/http.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/android/attributes.rb +58 -0
- data/lib/opentelemetry/semconv/incubating/android.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/app/attributes.rb +103 -0
- data/lib/opentelemetry/semconv/incubating/app.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/artifact/attributes.rb +117 -0
- data/lib/opentelemetry/semconv/incubating/artifact.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/aspnetcore/attributes.rb +113 -0
- data/lib/opentelemetry/semconv/incubating/aspnetcore/metrics.rb +99 -0
- data/lib/opentelemetry/semconv/incubating/aspnetcore.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/aws/attributes.rb +551 -0
- data/lib/opentelemetry/semconv/incubating/aws.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/az/attributes.rb +53 -0
- data/lib/opentelemetry/semconv/incubating/az.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/azure/attributes.rb +115 -0
- data/lib/opentelemetry/semconv/incubating/azure/metrics.rb +41 -0
- data/lib/opentelemetry/semconv/incubating/azure.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/browser/attributes.rb +77 -0
- data/lib/opentelemetry/semconv/incubating/browser.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/cassandra/attributes.rb +78 -0
- data/lib/opentelemetry/semconv/incubating/cassandra.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/cicd/attributes.rb +201 -0
- data/lib/opentelemetry/semconv/incubating/cicd/metrics.rb +61 -0
- data/lib/opentelemetry/semconv/incubating/cicd.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/client/attributes.rb +59 -0
- data/lib/opentelemetry/semconv/incubating/client.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/cloud/attributes.rb +105 -0
- data/lib/opentelemetry/semconv/incubating/cloud.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/cloudevents/attributes.rb +80 -0
- data/lib/opentelemetry/semconv/incubating/cloudevents.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/cloudfoundry/attributes.rb +190 -0
- data/lib/opentelemetry/semconv/incubating/cloudfoundry.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/code/attributes.rb +155 -0
- data/lib/opentelemetry/semconv/incubating/code.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/container/attributes.rb +197 -0
- data/lib/opentelemetry/semconv/incubating/container/metrics.rb +74 -0
- data/lib/opentelemetry/semconv/incubating/container.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/cpu/attributes.rb +50 -0
- data/lib/opentelemetry/semconv/incubating/cpu/metrics.rb +49 -0
- data/lib/opentelemetry/semconv/incubating/cpu.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/cpython/attributes.rb +42 -0
- data/lib/opentelemetry/semconv/incubating/cpython/metrics.rb +52 -0
- data/lib/opentelemetry/semconv/incubating/cpython.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/db/attributes.rb +615 -0
- data/lib/opentelemetry/semconv/incubating/db/metrics.rb +156 -0
- data/lib/opentelemetry/semconv/incubating/db.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/deployment/attributes.rb +84 -0
- data/lib/opentelemetry/semconv/incubating/deployment.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/destination/attributes.rb +54 -0
- data/lib/opentelemetry/semconv/incubating/destination.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/device/attributes.rb +88 -0
- data/lib/opentelemetry/semconv/incubating/device.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/disk/attributes.rb +40 -0
- data/lib/opentelemetry/semconv/incubating/disk.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/dns/attributes.rb +52 -0
- data/lib/opentelemetry/semconv/incubating/dns/metrics.rb +36 -0
- data/lib/opentelemetry/semconv/incubating/dns.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/dotnet/attributes.rb +44 -0
- data/lib/opentelemetry/semconv/incubating/dotnet/metrics.rb +221 -0
- data/lib/opentelemetry/semconv/incubating/dotnet.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/elasticsearch/attributes.rb +40 -0
- data/lib/opentelemetry/semconv/incubating/elasticsearch.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/enduser/attributes.rb +79 -0
- data/lib/opentelemetry/semconv/incubating/enduser.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/error/attributes.rb +81 -0
- data/lib/opentelemetry/semconv/incubating/error.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/event/attributes.rb +42 -0
- data/lib/opentelemetry/semconv/incubating/event.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/exception/attributes.rb +73 -0
- data/lib/opentelemetry/semconv/incubating/exception.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/faas/attributes.rb +200 -0
- data/lib/opentelemetry/semconv/incubating/faas/metrics.rb +76 -0
- data/lib/opentelemetry/semconv/incubating/faas.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/feature_flag/attributes.rb +159 -0
- data/lib/opentelemetry/semconv/incubating/feature_flag.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/file/attributes.rb +207 -0
- data/lib/opentelemetry/semconv/incubating/file.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/gcp/attributes.rb +159 -0
- data/lib/opentelemetry/semconv/incubating/gcp.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/gen_ai/attributes.rb +404 -0
- data/lib/opentelemetry/semconv/incubating/gen_ai/metrics.rb +56 -0
- data/lib/opentelemetry/semconv/incubating/gen_ai.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/geo/attributes.rb +91 -0
- data/lib/opentelemetry/semconv/incubating/geo.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/go/attributes.rb +41 -0
- data/lib/opentelemetry/semconv/incubating/go/metrics.rb +94 -0
- data/lib/opentelemetry/semconv/incubating/go.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/graphql/attributes.rb +62 -0
- data/lib/opentelemetry/semconv/incubating/graphql.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/heroku/attributes.rb +58 -0
- data/lib/opentelemetry/semconv/incubating/heroku.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/host/attributes.rb +172 -0
- data/lib/opentelemetry/semconv/incubating/host.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/http/attributes.rb +366 -0
- data/lib/opentelemetry/semconv/incubating/http/metrics.rb +93 -0
- data/lib/opentelemetry/semconv/incubating/http.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/hw/attributes.rb +70 -0
- data/lib/opentelemetry/semconv/incubating/hw/metrics.rb +79 -0
- data/lib/opentelemetry/semconv/incubating/hw.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/ios/attributes.rb +44 -0
- data/lib/opentelemetry/semconv/incubating/ios.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/jvm/attributes.rb +129 -0
- data/lib/opentelemetry/semconv/incubating/jvm/metrics.rb +162 -0
- data/lib/opentelemetry/semconv/incubating/jvm.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/k8s/attributes.rb +910 -0
- data/lib/opentelemetry/semconv/incubating/k8s/metrics.rb +658 -0
- data/lib/opentelemetry/semconv/incubating/k8s.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/kestrel/metrics.rb +106 -0
- data/lib/opentelemetry/semconv/incubating/kestrel.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/linux/attributes.rb +41 -0
- data/lib/opentelemetry/semconv/incubating/linux.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/log/attributes.rb +96 -0
- data/lib/opentelemetry/semconv/incubating/log.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/mainframe/attributes.rb +40 -0
- data/lib/opentelemetry/semconv/incubating/mainframe.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/message/attributes.rb +55 -0
- data/lib/opentelemetry/semconv/incubating/message.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/messaging/attributes.rb +451 -0
- data/lib/opentelemetry/semconv/incubating/messaging/metrics.rb +96 -0
- data/lib/opentelemetry/semconv/incubating/messaging.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/net/attributes.rb +175 -0
- data/lib/opentelemetry/semconv/incubating/net.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/network/attributes.rb +222 -0
- data/lib/opentelemetry/semconv/incubating/network.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/nodejs/attributes.rb +36 -0
- data/lib/opentelemetry/semconv/incubating/nodejs/metrics.rb +94 -0
- data/lib/opentelemetry/semconv/incubating/nodejs.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/oci/attributes.rb +43 -0
- data/lib/opentelemetry/semconv/incubating/oci.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/opentracing/attributes.rb +38 -0
- data/lib/opentelemetry/semconv/incubating/opentracing.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/os/attributes.rb +78 -0
- data/lib/opentelemetry/semconv/incubating/os.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/otel/attributes.rb +138 -0
- data/lib/opentelemetry/semconv/incubating/otel/metrics.rb +194 -0
- data/lib/opentelemetry/semconv/incubating/otel.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/other/attributes.rb +41 -0
- data/lib/opentelemetry/semconv/incubating/other.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/peer/attributes.rb +40 -0
- data/lib/opentelemetry/semconv/incubating/peer.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/pool/attributes.rb +41 -0
- data/lib/opentelemetry/semconv/incubating/pool.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/process/attributes.rb +367 -0
- data/lib/opentelemetry/semconv/incubating/process/metrics.rb +89 -0
- data/lib/opentelemetry/semconv/incubating/process.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/profile/attributes.rb +40 -0
- data/lib/opentelemetry/semconv/incubating/profile.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/rpc/attributes.rb +215 -0
- data/lib/opentelemetry/semconv/incubating/rpc/metrics.rb +115 -0
- data/lib/opentelemetry/semconv/incubating/rpc.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/security_rule/attributes.rb +106 -0
- data/lib/opentelemetry/semconv/incubating/security_rule.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/server/attributes.rb +61 -0
- data/lib/opentelemetry/semconv/incubating/server.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/service/attributes.rb +103 -0
- data/lib/opentelemetry/semconv/incubating/service.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/session/attributes.rb +49 -0
- data/lib/opentelemetry/semconv/incubating/session.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/signalr/attributes.rb +55 -0
- data/lib/opentelemetry/semconv/incubating/signalr/metrics.rb +49 -0
- data/lib/opentelemetry/semconv/incubating/signalr.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/source/attributes.rb +54 -0
- data/lib/opentelemetry/semconv/incubating/source.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/system/attributes.rb +162 -0
- data/lib/opentelemetry/semconv/incubating/system/metrics.rb +227 -0
- data/lib/opentelemetry/semconv/incubating/system.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/telemetry/attributes.rb +88 -0
- data/lib/opentelemetry/semconv/incubating/telemetry.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/test/attributes.rb +75 -0
- data/lib/opentelemetry/semconv/incubating/test.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/thread/attributes.rb +49 -0
- data/lib/opentelemetry/semconv/incubating/thread.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/tls/attributes.rb +293 -0
- data/lib/opentelemetry/semconv/incubating/tls.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/url/attributes.rb +225 -0
- data/lib/opentelemetry/semconv/incubating/url.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/user/attributes.rb +87 -0
- data/lib/opentelemetry/semconv/incubating/user.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/user_agent/attributes.rb +100 -0
- data/lib/opentelemetry/semconv/incubating/user_agent.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/v8js/attributes.rb +43 -0
- data/lib/opentelemetry/semconv/incubating/v8js/metrics.rb +66 -0
- data/lib/opentelemetry/semconv/incubating/v8js.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/vcs/attributes.rb +303 -0
- data/lib/opentelemetry/semconv/incubating/vcs/metrics.rb +88 -0
- data/lib/opentelemetry/semconv/incubating/vcs.rb +22 -0
- data/lib/opentelemetry/semconv/incubating/webengine/attributes.rb +58 -0
- data/lib/opentelemetry/semconv/incubating/webengine.rb +21 -0
- data/lib/opentelemetry/semconv/incubating/zos/attributes.rb +49 -0
- data/lib/opentelemetry/semconv/incubating/zos.rb +21 -0
- data/lib/opentelemetry/semconv/jvm/attributes.rb +91 -0
- data/lib/opentelemetry/semconv/jvm/metrics.rb +91 -0
- data/lib/opentelemetry/semconv/jvm.rb +22 -0
- data/lib/opentelemetry/semconv/kestrel/metrics.rb +88 -0
- data/lib/opentelemetry/semconv/kestrel.rb +21 -0
- data/lib/opentelemetry/semconv/network/attributes.rb +120 -0
- data/lib/opentelemetry/semconv/network.rb +21 -0
- data/lib/opentelemetry/semconv/otel/attributes.rb +61 -0
- data/lib/opentelemetry/semconv/otel.rb +21 -0
- data/lib/opentelemetry/semconv/server/attributes.rb +55 -0
- data/lib/opentelemetry/semconv/server.rb +21 -0
- data/lib/opentelemetry/semconv/service/attributes.rb +50 -0
- data/lib/opentelemetry/semconv/service.rb +21 -0
- data/lib/opentelemetry/semconv/signalr/attributes.rb +49 -0
- data/lib/opentelemetry/semconv/signalr/metrics.rb +43 -0
- data/lib/opentelemetry/semconv/signalr.rb +22 -0
- data/lib/opentelemetry/semconv/telemetry/attributes.rb +59 -0
- data/lib/opentelemetry/semconv/telemetry.rb +21 -0
- data/lib/opentelemetry/semconv/url/attributes.rb +118 -0
- data/lib/opentelemetry/semconv/url.rb +21 -0
- data/lib/opentelemetry/semconv/user_agent/attributes.rb +40 -0
- data/lib/opentelemetry/semconv/user_agent.rb +21 -0
- metadata +249 -4
@@ -0,0 +1,910 @@
|
|
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 Incubating
|
24
|
+
module K8S
|
25
|
+
# @!group Attribute Names
|
26
|
+
|
27
|
+
# The name of the cluster.
|
28
|
+
#
|
29
|
+
# @note Stability Level: development
|
30
|
+
#
|
31
|
+
# @example Sample Values
|
32
|
+
# opentelemetry-cluster
|
33
|
+
#
|
34
|
+
K8S_CLUSTER_NAME = 'k8s.cluster.name'
|
35
|
+
|
36
|
+
# A pseudo-ID for the cluster, set to the UID of the `kube-system` namespace.
|
37
|
+
#
|
38
|
+
# K8s doesn't have support for obtaining a cluster ID. If this is ever
|
39
|
+
# added, we will recommend collecting the `k8s.cluster.uid` through the
|
40
|
+
# official APIs. In the meantime, we are able to use the `uid` of the
|
41
|
+
# `kube-system` namespace as a proxy for cluster ID. Read on for the
|
42
|
+
# rationale.
|
43
|
+
#
|
44
|
+
# Every object created in a K8s cluster is assigned a distinct UID. The
|
45
|
+
# `kube-system` namespace is used by Kubernetes itself and will exist
|
46
|
+
# for the lifetime of the cluster. Using the `uid` of the `kube-system`
|
47
|
+
# namespace is a reasonable proxy for the K8s ClusterID as it will only
|
48
|
+
# change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are
|
49
|
+
# UUIDs as standardized by
|
50
|
+
# [ISO/IEC 9834-8 and ITU-T X.667](https://www.itu.int/ITU-T/studygroups/com17/oid.html).
|
51
|
+
# Which states:
|
52
|
+
#
|
53
|
+
# > If generated according to one of the mechanisms defined in Rec.
|
54
|
+
# > ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be
|
55
|
+
# > different from all other UUIDs generated before 3603 A.D., or is
|
56
|
+
# > extremely likely to be different (depending on the mechanism chosen).
|
57
|
+
#
|
58
|
+
# Therefore, UIDs between clusters should be extremely unlikely to
|
59
|
+
# conflict.
|
60
|
+
#
|
61
|
+
# @note Stability Level: development
|
62
|
+
#
|
63
|
+
# @example Sample Values
|
64
|
+
# 218fc5a9-a5f1-4b54-aa05-46717d0ab26d
|
65
|
+
#
|
66
|
+
K8S_CLUSTER_UID = 'k8s.cluster.uid'
|
67
|
+
|
68
|
+
# The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (`container.name`).
|
69
|
+
#
|
70
|
+
# @note Stability Level: development
|
71
|
+
#
|
72
|
+
# @example Sample Values
|
73
|
+
# redis
|
74
|
+
#
|
75
|
+
K8S_CONTAINER_NAME = 'k8s.container.name'
|
76
|
+
|
77
|
+
# Number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec.
|
78
|
+
#
|
79
|
+
# @note Stability Level: development
|
80
|
+
K8S_CONTAINER_RESTART_COUNT = 'k8s.container.restart_count'
|
81
|
+
|
82
|
+
# Last terminated reason of the Container.
|
83
|
+
#
|
84
|
+
# @note Stability Level: development
|
85
|
+
#
|
86
|
+
# @example Sample Values
|
87
|
+
# Evicted
|
88
|
+
# Error
|
89
|
+
#
|
90
|
+
K8S_CONTAINER_STATUS_LAST_TERMINATED_REASON = 'k8s.container.status.last_terminated_reason'
|
91
|
+
|
92
|
+
# The reason for the container state. Corresponds to the `reason` field of the: [K8s ContainerStateWaiting](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#containerstatewaiting-v1-core) or [K8s ContainerStateTerminated](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#containerstateterminated-v1-core)
|
93
|
+
#
|
94
|
+
# @note Stability Level: development
|
95
|
+
#
|
96
|
+
# @example Sample Values
|
97
|
+
# ContainerCreating
|
98
|
+
# CrashLoopBackOff
|
99
|
+
# CreateContainerConfigError
|
100
|
+
# ErrImagePull
|
101
|
+
# ImagePullBackOff
|
102
|
+
# OOMKilled
|
103
|
+
# Completed
|
104
|
+
# Error
|
105
|
+
# ContainerCannotRun
|
106
|
+
#
|
107
|
+
K8S_CONTAINER_STATUS_REASON = 'k8s.container.status.reason'
|
108
|
+
|
109
|
+
# The state of the container. [K8s ContainerState](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#containerstate-v1-core)
|
110
|
+
#
|
111
|
+
# @note Stability Level: development
|
112
|
+
#
|
113
|
+
# @example Sample Values
|
114
|
+
# terminated
|
115
|
+
# running
|
116
|
+
# waiting
|
117
|
+
#
|
118
|
+
K8S_CONTAINER_STATUS_STATE = 'k8s.container.status.state'
|
119
|
+
|
120
|
+
# Must be called with a key for the full attribute name. See notes below about the expectations
|
121
|
+
# for the state of the key.
|
122
|
+
#
|
123
|
+
# @example Usage
|
124
|
+
# K8S_CRONJOB_ANNOTATION_LAMBDA.call('some-cool-key') #=> 'k8s.cronjob.annotation.some-cool-key'
|
125
|
+
#
|
126
|
+
# The cronjob annotation placed on the CronJob, the `<key>` being the annotation name, the value being the annotation value.
|
127
|
+
#
|
128
|
+
# Examples:
|
129
|
+
#
|
130
|
+
# - An annotation `retries` with value `4` SHOULD be recorded as the
|
131
|
+
# `k8s.cronjob.annotation.retries` attribute with value `"4"`.
|
132
|
+
# - An annotation `data` with empty string value SHOULD be recorded as
|
133
|
+
# the `k8s.cronjob.annotation.data` attribute with value `""`.
|
134
|
+
#
|
135
|
+
# @note Stability Level: development
|
136
|
+
#
|
137
|
+
# @example Sample Values
|
138
|
+
# 4
|
139
|
+
#
|
140
|
+
#
|
141
|
+
K8S_CRONJOB_ANNOTATION_LAMBDA = ->(key) { "k8s.cronjob.annotation.#{key}" }
|
142
|
+
|
143
|
+
# Must be called with a key for the full attribute name. See notes below about the expectations
|
144
|
+
# for the state of the key.
|
145
|
+
#
|
146
|
+
# @example Usage
|
147
|
+
# K8S_CRONJOB_LABEL_LAMBDA.call('some-cool-key') #=> 'k8s.cronjob.label.some-cool-key'
|
148
|
+
#
|
149
|
+
# The label placed on the CronJob, the `<key>` being the label name, the value being the label value.
|
150
|
+
#
|
151
|
+
# Examples:
|
152
|
+
#
|
153
|
+
# - A label `type` with value `weekly` SHOULD be recorded as the
|
154
|
+
# `k8s.cronjob.label.type` attribute with value `"weekly"`.
|
155
|
+
# - A label `automated` with empty string value SHOULD be recorded as
|
156
|
+
# the `k8s.cronjob.label.automated` attribute with value `""`.
|
157
|
+
#
|
158
|
+
# @note Stability Level: development
|
159
|
+
#
|
160
|
+
# @example Sample Values
|
161
|
+
# weekly
|
162
|
+
#
|
163
|
+
#
|
164
|
+
K8S_CRONJOB_LABEL_LAMBDA = ->(key) { "k8s.cronjob.label.#{key}" }
|
165
|
+
|
166
|
+
# The name of the CronJob.
|
167
|
+
#
|
168
|
+
# @note Stability Level: development
|
169
|
+
#
|
170
|
+
# @example Sample Values
|
171
|
+
# opentelemetry
|
172
|
+
#
|
173
|
+
K8S_CRONJOB_NAME = 'k8s.cronjob.name'
|
174
|
+
|
175
|
+
# The UID of the CronJob.
|
176
|
+
#
|
177
|
+
# @note Stability Level: development
|
178
|
+
#
|
179
|
+
# @example Sample Values
|
180
|
+
# 275ecb36-5aa8-4c2a-9c47-d8bb681b9aff
|
181
|
+
#
|
182
|
+
K8S_CRONJOB_UID = 'k8s.cronjob.uid'
|
183
|
+
|
184
|
+
# Must be called with a key for the full attribute name. See notes below about the expectations
|
185
|
+
# for the state of the key.
|
186
|
+
#
|
187
|
+
# @example Usage
|
188
|
+
# K8S_DAEMONSET_ANNOTATION_LAMBDA.call('some-cool-key') #=> 'k8s.daemonset.annotation.some-cool-key'
|
189
|
+
#
|
190
|
+
# The annotation placed on the DaemonSet, the `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
|
191
|
+
#
|
192
|
+
# Examples:
|
193
|
+
#
|
194
|
+
# - A label `replicas` with value `1` SHOULD be recorded
|
195
|
+
# as the `k8s.daemonset.annotation.replicas` attribute with value `"1"`.
|
196
|
+
# - A label `data` with empty string value SHOULD be recorded as
|
197
|
+
# the `k8s.daemonset.annotation.data` attribute with value `""`.
|
198
|
+
#
|
199
|
+
# @note Stability Level: development
|
200
|
+
#
|
201
|
+
# @example Sample Values
|
202
|
+
# 1
|
203
|
+
#
|
204
|
+
#
|
205
|
+
K8S_DAEMONSET_ANNOTATION_LAMBDA = ->(key) { "k8s.daemonset.annotation.#{key}" }
|
206
|
+
|
207
|
+
# Must be called with a key for the full attribute name. See notes below about the expectations
|
208
|
+
# for the state of the key.
|
209
|
+
#
|
210
|
+
# @example Usage
|
211
|
+
# K8S_DAEMONSET_LABEL_LAMBDA.call('some-cool-key') #=> 'k8s.daemonset.label.some-cool-key'
|
212
|
+
#
|
213
|
+
# The label placed on the DaemonSet, the `<key>` being the label name, the value being the label value, even if the value is empty.
|
214
|
+
#
|
215
|
+
# Examples:
|
216
|
+
#
|
217
|
+
# - A label `app` with value `guestbook` SHOULD be recorded
|
218
|
+
# as the `k8s.daemonset.label.app` attribute with value `"guestbook"`.
|
219
|
+
# - A label `data` with empty string value SHOULD be recorded as
|
220
|
+
# the `k8s.daemonset.label.injected` attribute with value `""`.
|
221
|
+
#
|
222
|
+
# @note Stability Level: development
|
223
|
+
#
|
224
|
+
# @example Sample Values
|
225
|
+
# guestbook
|
226
|
+
#
|
227
|
+
#
|
228
|
+
K8S_DAEMONSET_LABEL_LAMBDA = ->(key) { "k8s.daemonset.label.#{key}" }
|
229
|
+
|
230
|
+
# The name of the DaemonSet.
|
231
|
+
#
|
232
|
+
# @note Stability Level: development
|
233
|
+
#
|
234
|
+
# @example Sample Values
|
235
|
+
# opentelemetry
|
236
|
+
#
|
237
|
+
K8S_DAEMONSET_NAME = 'k8s.daemonset.name'
|
238
|
+
|
239
|
+
# The UID of the DaemonSet.
|
240
|
+
#
|
241
|
+
# @note Stability Level: development
|
242
|
+
#
|
243
|
+
# @example Sample Values
|
244
|
+
# 275ecb36-5aa8-4c2a-9c47-d8bb681b9aff
|
245
|
+
#
|
246
|
+
K8S_DAEMONSET_UID = 'k8s.daemonset.uid'
|
247
|
+
|
248
|
+
# Must be called with a key for the full attribute name. See notes below about the expectations
|
249
|
+
# for the state of the key.
|
250
|
+
#
|
251
|
+
# @example Usage
|
252
|
+
# K8S_DEPLOYMENT_ANNOTATION_LAMBDA.call('some-cool-key') #=> 'k8s.deployment.annotation.some-cool-key'
|
253
|
+
#
|
254
|
+
# The annotation placed on the Deployment, the `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
|
255
|
+
#
|
256
|
+
# Examples:
|
257
|
+
#
|
258
|
+
# - A label `replicas` with value `1` SHOULD be recorded
|
259
|
+
# as the `k8s.deployment.annotation.replicas` attribute with value `"1"`.
|
260
|
+
# - A label `data` with empty string value SHOULD be recorded as
|
261
|
+
# the `k8s.deployment.annotation.data` attribute with value `""`.
|
262
|
+
#
|
263
|
+
# @note Stability Level: development
|
264
|
+
#
|
265
|
+
# @example Sample Values
|
266
|
+
# 1
|
267
|
+
#
|
268
|
+
#
|
269
|
+
K8S_DEPLOYMENT_ANNOTATION_LAMBDA = ->(key) { "k8s.deployment.annotation.#{key}" }
|
270
|
+
|
271
|
+
# Must be called with a key for the full attribute name. See notes below about the expectations
|
272
|
+
# for the state of the key.
|
273
|
+
#
|
274
|
+
# @example Usage
|
275
|
+
# K8S_DEPLOYMENT_LABEL_LAMBDA.call('some-cool-key') #=> 'k8s.deployment.label.some-cool-key'
|
276
|
+
#
|
277
|
+
# The label placed on the Deployment, the `<key>` being the label name, the value being the label value, even if the value is empty.
|
278
|
+
#
|
279
|
+
# Examples:
|
280
|
+
#
|
281
|
+
# - A label `replicas` with value `0` SHOULD be recorded
|
282
|
+
# as the `k8s.deployment.label.app` attribute with value `"guestbook"`.
|
283
|
+
# - A label `injected` with empty string value SHOULD be recorded as
|
284
|
+
# the `k8s.deployment.label.injected` attribute with value `""`.
|
285
|
+
#
|
286
|
+
# @note Stability Level: development
|
287
|
+
#
|
288
|
+
# @example Sample Values
|
289
|
+
# guestbook
|
290
|
+
#
|
291
|
+
#
|
292
|
+
K8S_DEPLOYMENT_LABEL_LAMBDA = ->(key) { "k8s.deployment.label.#{key}" }
|
293
|
+
|
294
|
+
# The name of the Deployment.
|
295
|
+
#
|
296
|
+
# @note Stability Level: development
|
297
|
+
#
|
298
|
+
# @example Sample Values
|
299
|
+
# opentelemetry
|
300
|
+
#
|
301
|
+
K8S_DEPLOYMENT_NAME = 'k8s.deployment.name'
|
302
|
+
|
303
|
+
# The UID of the Deployment.
|
304
|
+
#
|
305
|
+
# @note Stability Level: development
|
306
|
+
#
|
307
|
+
# @example Sample Values
|
308
|
+
# 275ecb36-5aa8-4c2a-9c47-d8bb681b9aff
|
309
|
+
#
|
310
|
+
K8S_DEPLOYMENT_UID = 'k8s.deployment.uid'
|
311
|
+
|
312
|
+
# The type of metric source for the horizontal pod autoscaler.
|
313
|
+
#
|
314
|
+
# This attribute reflects the `type` field of spec.metrics[] in the HPA.
|
315
|
+
#
|
316
|
+
# @note Stability Level: development
|
317
|
+
#
|
318
|
+
# @example Sample Values
|
319
|
+
# Resource
|
320
|
+
# ContainerResource
|
321
|
+
#
|
322
|
+
K8S_HPA_METRIC_TYPE = 'k8s.hpa.metric.type'
|
323
|
+
|
324
|
+
# The name of the horizontal pod autoscaler.
|
325
|
+
#
|
326
|
+
# @note Stability Level: development
|
327
|
+
#
|
328
|
+
# @example Sample Values
|
329
|
+
# opentelemetry
|
330
|
+
#
|
331
|
+
K8S_HPA_NAME = 'k8s.hpa.name'
|
332
|
+
|
333
|
+
# The API version of the target resource to scale for the HorizontalPodAutoscaler.
|
334
|
+
#
|
335
|
+
# This maps to the `apiVersion` field in the `scaleTargetRef` of the HPA spec.
|
336
|
+
#
|
337
|
+
# @note Stability Level: development
|
338
|
+
#
|
339
|
+
# @example Sample Values
|
340
|
+
# apps/v1
|
341
|
+
# autoscaling/v2
|
342
|
+
#
|
343
|
+
K8S_HPA_SCALETARGETREF_API_VERSION = 'k8s.hpa.scaletargetref.api_version'
|
344
|
+
|
345
|
+
# The kind of the target resource to scale for the HorizontalPodAutoscaler.
|
346
|
+
#
|
347
|
+
# This maps to the `kind` field in the `scaleTargetRef` of the HPA spec.
|
348
|
+
#
|
349
|
+
# @note Stability Level: development
|
350
|
+
#
|
351
|
+
# @example Sample Values
|
352
|
+
# Deployment
|
353
|
+
# StatefulSet
|
354
|
+
#
|
355
|
+
K8S_HPA_SCALETARGETREF_KIND = 'k8s.hpa.scaletargetref.kind'
|
356
|
+
|
357
|
+
# The name of the target resource to scale for the HorizontalPodAutoscaler.
|
358
|
+
#
|
359
|
+
# This maps to the `name` field in the `scaleTargetRef` of the HPA spec.
|
360
|
+
#
|
361
|
+
# @note Stability Level: development
|
362
|
+
#
|
363
|
+
# @example Sample Values
|
364
|
+
# my-deployment
|
365
|
+
# my-statefulset
|
366
|
+
#
|
367
|
+
K8S_HPA_SCALETARGETREF_NAME = 'k8s.hpa.scaletargetref.name'
|
368
|
+
|
369
|
+
# The UID of the horizontal pod autoscaler.
|
370
|
+
#
|
371
|
+
# @note Stability Level: development
|
372
|
+
#
|
373
|
+
# @example Sample Values
|
374
|
+
# 275ecb36-5aa8-4c2a-9c47-d8bb681b9aff
|
375
|
+
#
|
376
|
+
K8S_HPA_UID = 'k8s.hpa.uid'
|
377
|
+
|
378
|
+
# The size (identifier) of the K8s huge page.
|
379
|
+
#
|
380
|
+
# @note Stability Level: development
|
381
|
+
#
|
382
|
+
# @example Sample Values
|
383
|
+
# 2Mi
|
384
|
+
#
|
385
|
+
K8S_HUGEPAGE_SIZE = 'k8s.hugepage.size'
|
386
|
+
|
387
|
+
# Must be called with a key for the full attribute name. See notes below about the expectations
|
388
|
+
# for the state of the key.
|
389
|
+
#
|
390
|
+
# @example Usage
|
391
|
+
# K8S_JOB_ANNOTATION_LAMBDA.call('some-cool-key') #=> 'k8s.job.annotation.some-cool-key'
|
392
|
+
#
|
393
|
+
# The annotation placed on the Job, the `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
|
394
|
+
#
|
395
|
+
# Examples:
|
396
|
+
#
|
397
|
+
# - A label `number` with value `1` SHOULD be recorded
|
398
|
+
# as the `k8s.job.annotation.number` attribute with value `"1"`.
|
399
|
+
# - A label `data` with empty string value SHOULD be recorded as
|
400
|
+
# the `k8s.job.annotation.data` attribute with value `""`.
|
401
|
+
#
|
402
|
+
# @note Stability Level: development
|
403
|
+
#
|
404
|
+
# @example Sample Values
|
405
|
+
# 1
|
406
|
+
#
|
407
|
+
#
|
408
|
+
K8S_JOB_ANNOTATION_LAMBDA = ->(key) { "k8s.job.annotation.#{key}" }
|
409
|
+
|
410
|
+
# Must be called with a key for the full attribute name. See notes below about the expectations
|
411
|
+
# for the state of the key.
|
412
|
+
#
|
413
|
+
# @example Usage
|
414
|
+
# K8S_JOB_LABEL_LAMBDA.call('some-cool-key') #=> 'k8s.job.label.some-cool-key'
|
415
|
+
#
|
416
|
+
# The label placed on the Job, the `<key>` being the label name, the value being the label value, even if the value is empty.
|
417
|
+
#
|
418
|
+
# Examples:
|
419
|
+
#
|
420
|
+
# - A label `jobtype` with value `ci` SHOULD be recorded
|
421
|
+
# as the `k8s.job.label.jobtype` attribute with value `"ci"`.
|
422
|
+
# - A label `data` with empty string value SHOULD be recorded as
|
423
|
+
# the `k8s.job.label.automated` attribute with value `""`.
|
424
|
+
#
|
425
|
+
# @note Stability Level: development
|
426
|
+
#
|
427
|
+
# @example Sample Values
|
428
|
+
# ci
|
429
|
+
#
|
430
|
+
#
|
431
|
+
K8S_JOB_LABEL_LAMBDA = ->(key) { "k8s.job.label.#{key}" }
|
432
|
+
|
433
|
+
# The name of the Job.
|
434
|
+
#
|
435
|
+
# @note Stability Level: development
|
436
|
+
#
|
437
|
+
# @example Sample Values
|
438
|
+
# opentelemetry
|
439
|
+
#
|
440
|
+
K8S_JOB_NAME = 'k8s.job.name'
|
441
|
+
|
442
|
+
# The UID of the Job.
|
443
|
+
#
|
444
|
+
# @note Stability Level: development
|
445
|
+
#
|
446
|
+
# @example Sample Values
|
447
|
+
# 275ecb36-5aa8-4c2a-9c47-d8bb681b9aff
|
448
|
+
#
|
449
|
+
K8S_JOB_UID = 'k8s.job.uid'
|
450
|
+
|
451
|
+
# Must be called with a key for the full attribute name. See notes below about the expectations
|
452
|
+
# for the state of the key.
|
453
|
+
#
|
454
|
+
# @example Usage
|
455
|
+
# K8S_NAMESPACE_ANNOTATION_LAMBDA.call('some-cool-key') #=> 'k8s.namespace.annotation.some-cool-key'
|
456
|
+
#
|
457
|
+
# The annotation placed on the Namespace, the `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
|
458
|
+
#
|
459
|
+
# Examples:
|
460
|
+
#
|
461
|
+
# - A label `ttl` with value `0` SHOULD be recorded
|
462
|
+
# as the `k8s.namespace.annotation.ttl` attribute with value `"0"`.
|
463
|
+
# - A label `data` with empty string value SHOULD be recorded as
|
464
|
+
# the `k8s.namespace.annotation.data` attribute with value `""`.
|
465
|
+
#
|
466
|
+
# @note Stability Level: development
|
467
|
+
#
|
468
|
+
# @example Sample Values
|
469
|
+
# 0
|
470
|
+
#
|
471
|
+
#
|
472
|
+
K8S_NAMESPACE_ANNOTATION_LAMBDA = ->(key) { "k8s.namespace.annotation.#{key}" }
|
473
|
+
|
474
|
+
# Must be called with a key for the full attribute name. See notes below about the expectations
|
475
|
+
# for the state of the key.
|
476
|
+
#
|
477
|
+
# @example Usage
|
478
|
+
# K8S_NAMESPACE_LABEL_LAMBDA.call('some-cool-key') #=> 'k8s.namespace.label.some-cool-key'
|
479
|
+
#
|
480
|
+
# The label placed on the Namespace, the `<key>` being the label name, the value being the label value, even if the value is empty.
|
481
|
+
#
|
482
|
+
# Examples:
|
483
|
+
#
|
484
|
+
# - A label `kubernetes.io/metadata.name` with value `default` SHOULD be recorded
|
485
|
+
# as the `k8s.namespace.label.kubernetes.io/metadata.name` attribute with value `"default"`.
|
486
|
+
# - A label `data` with empty string value SHOULD be recorded as
|
487
|
+
# the `k8s.namespace.label.data` attribute with value `""`.
|
488
|
+
#
|
489
|
+
# @note Stability Level: development
|
490
|
+
#
|
491
|
+
# @example Sample Values
|
492
|
+
# default
|
493
|
+
#
|
494
|
+
#
|
495
|
+
K8S_NAMESPACE_LABEL_LAMBDA = ->(key) { "k8s.namespace.label.#{key}" }
|
496
|
+
|
497
|
+
# The name of the namespace that the pod is running in.
|
498
|
+
#
|
499
|
+
# @note Stability Level: development
|
500
|
+
#
|
501
|
+
# @example Sample Values
|
502
|
+
# default
|
503
|
+
#
|
504
|
+
K8S_NAMESPACE_NAME = 'k8s.namespace.name'
|
505
|
+
|
506
|
+
# The phase of the K8s namespace.
|
507
|
+
#
|
508
|
+
# This attribute aligns with the `phase` field of the
|
509
|
+
# [K8s NamespaceStatus](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#namespacestatus-v1-core)
|
510
|
+
#
|
511
|
+
# @note Stability Level: development
|
512
|
+
#
|
513
|
+
# @example Sample Values
|
514
|
+
# active
|
515
|
+
# terminating
|
516
|
+
#
|
517
|
+
K8S_NAMESPACE_PHASE = 'k8s.namespace.phase'
|
518
|
+
|
519
|
+
# Must be called with a key for the full attribute name. See notes below about the expectations
|
520
|
+
# for the state of the key.
|
521
|
+
#
|
522
|
+
# @example Usage
|
523
|
+
# K8S_NODE_ANNOTATION_LAMBDA.call('some-cool-key') #=> 'k8s.node.annotation.some-cool-key'
|
524
|
+
#
|
525
|
+
# The annotation placed on the Node, the `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
|
526
|
+
#
|
527
|
+
# Examples:
|
528
|
+
#
|
529
|
+
# - An annotation `node.alpha.kubernetes.io/ttl` with value `0` SHOULD be recorded as
|
530
|
+
# the `k8s.node.annotation.node.alpha.kubernetes.io/ttl` attribute with value `"0"`.
|
531
|
+
# - An annotation `data` with empty string value SHOULD be recorded as
|
532
|
+
# the `k8s.node.annotation.data` attribute with value `""`.
|
533
|
+
#
|
534
|
+
# @note Stability Level: development
|
535
|
+
#
|
536
|
+
# @example Sample Values
|
537
|
+
# 0
|
538
|
+
#
|
539
|
+
#
|
540
|
+
K8S_NODE_ANNOTATION_LAMBDA = ->(key) { "k8s.node.annotation.#{key}" }
|
541
|
+
|
542
|
+
# The status of the condition, one of True, False, Unknown.
|
543
|
+
#
|
544
|
+
# This attribute aligns with the `status` field of the
|
545
|
+
# [NodeCondition](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#nodecondition-v1-core)
|
546
|
+
#
|
547
|
+
# @note Stability Level: development
|
548
|
+
#
|
549
|
+
# @example Sample Values
|
550
|
+
# true
|
551
|
+
# false
|
552
|
+
# unknown
|
553
|
+
#
|
554
|
+
K8S_NODE_CONDITION_STATUS = 'k8s.node.condition.status'
|
555
|
+
|
556
|
+
# The condition type of a K8s Node.
|
557
|
+
#
|
558
|
+
# K8s Node conditions as described
|
559
|
+
# by [K8s documentation](https://v1-32.docs.kubernetes.io/docs/reference/node/node-status/#condition).
|
560
|
+
#
|
561
|
+
# This attribute aligns with the `type` field of the
|
562
|
+
# [NodeCondition](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#nodecondition-v1-core)
|
563
|
+
#
|
564
|
+
# The set of possible values is not limited to those listed here. Managed Kubernetes environments,
|
565
|
+
# or custom controllers MAY introduce additional node condition types.
|
566
|
+
# When this occurs, the exact value as reported by the Kubernetes API SHOULD be used.
|
567
|
+
#
|
568
|
+
# @note Stability Level: development
|
569
|
+
#
|
570
|
+
# @example Sample Values
|
571
|
+
# Ready
|
572
|
+
# DiskPressure
|
573
|
+
#
|
574
|
+
K8S_NODE_CONDITION_TYPE = 'k8s.node.condition.type'
|
575
|
+
|
576
|
+
# Must be called with a key for the full attribute name. See notes below about the expectations
|
577
|
+
# for the state of the key.
|
578
|
+
#
|
579
|
+
# @example Usage
|
580
|
+
# K8S_NODE_LABEL_LAMBDA.call('some-cool-key') #=> 'k8s.node.label.some-cool-key'
|
581
|
+
#
|
582
|
+
# The label placed on the Node, the `<key>` being the label name, the value being the label value, even if the value is empty.
|
583
|
+
#
|
584
|
+
# Examples:
|
585
|
+
#
|
586
|
+
# - A label `kubernetes.io/arch` with value `arm64` SHOULD be recorded
|
587
|
+
# as the `k8s.node.label.kubernetes.io/arch` attribute with value `"arm64"`.
|
588
|
+
# - A label `data` with empty string value SHOULD be recorded as
|
589
|
+
# the `k8s.node.label.data` attribute with value `""`.
|
590
|
+
#
|
591
|
+
# @note Stability Level: development
|
592
|
+
#
|
593
|
+
# @example Sample Values
|
594
|
+
# arm64
|
595
|
+
#
|
596
|
+
#
|
597
|
+
K8S_NODE_LABEL_LAMBDA = ->(key) { "k8s.node.label.#{key}" }
|
598
|
+
|
599
|
+
# The name of the Node.
|
600
|
+
#
|
601
|
+
# @note Stability Level: development
|
602
|
+
#
|
603
|
+
# @example Sample Values
|
604
|
+
# node-1
|
605
|
+
#
|
606
|
+
K8S_NODE_NAME = 'k8s.node.name'
|
607
|
+
|
608
|
+
# The UID of the Node.
|
609
|
+
#
|
610
|
+
# @note Stability Level: development
|
611
|
+
#
|
612
|
+
# @example Sample Values
|
613
|
+
# 1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2
|
614
|
+
#
|
615
|
+
K8S_NODE_UID = 'k8s.node.uid'
|
616
|
+
|
617
|
+
# Must be called with a key for the full attribute name. See notes below about the expectations
|
618
|
+
# for the state of the key.
|
619
|
+
#
|
620
|
+
# @example Usage
|
621
|
+
# K8S_POD_ANNOTATION_LAMBDA.call('some-cool-key') #=> 'k8s.pod.annotation.some-cool-key'
|
622
|
+
#
|
623
|
+
# The annotation placed on the Pod, the `<key>` being the annotation name, the value being the annotation value.
|
624
|
+
#
|
625
|
+
# Examples:
|
626
|
+
#
|
627
|
+
# - An annotation `kubernetes.io/enforce-mountable-secrets` with value `true` SHOULD be recorded as
|
628
|
+
# the `k8s.pod.annotation.kubernetes.io/enforce-mountable-secrets` attribute with value `"true"`.
|
629
|
+
# - An annotation `mycompany.io/arch` with value `x64` SHOULD be recorded as
|
630
|
+
# the `k8s.pod.annotation.mycompany.io/arch` attribute with value `"x64"`.
|
631
|
+
# - An annotation `data` with empty string value SHOULD be recorded as
|
632
|
+
# the `k8s.pod.annotation.data` attribute with value `""`.
|
633
|
+
#
|
634
|
+
# @note Stability Level: development
|
635
|
+
#
|
636
|
+
# @example Sample Values
|
637
|
+
# true
|
638
|
+
# x64
|
639
|
+
#
|
640
|
+
#
|
641
|
+
K8S_POD_ANNOTATION_LAMBDA = ->(key) { "k8s.pod.annotation.#{key}" }
|
642
|
+
|
643
|
+
# Must be called with a key for the full attribute name. See notes below about the expectations
|
644
|
+
# for the state of the key.
|
645
|
+
#
|
646
|
+
# @example Usage
|
647
|
+
# K8S_POD_LABEL_LAMBDA.call('some-cool-key') #=> 'k8s.pod.label.some-cool-key'
|
648
|
+
#
|
649
|
+
# The label placed on the Pod, the `<key>` being the label name, the value being the label value.
|
650
|
+
#
|
651
|
+
# Examples:
|
652
|
+
#
|
653
|
+
# - A label `app` with value `my-app` SHOULD be recorded as
|
654
|
+
# the `k8s.pod.label.app` attribute with value `"my-app"`.
|
655
|
+
# - A label `mycompany.io/arch` with value `x64` SHOULD be recorded as
|
656
|
+
# the `k8s.pod.label.mycompany.io/arch` attribute with value `"x64"`.
|
657
|
+
# - A label `data` with empty string value SHOULD be recorded as
|
658
|
+
# the `k8s.pod.label.data` attribute with value `""`.
|
659
|
+
#
|
660
|
+
# @note Stability Level: development
|
661
|
+
#
|
662
|
+
# @example Sample Values
|
663
|
+
# my-app
|
664
|
+
# x64
|
665
|
+
#
|
666
|
+
#
|
667
|
+
K8S_POD_LABEL_LAMBDA = ->(key) { "k8s.pod.label.#{key}" }
|
668
|
+
|
669
|
+
# Must be called with a key for the full attribute name. See notes below about the expectations
|
670
|
+
# for the state of the key.
|
671
|
+
#
|
672
|
+
# @example Usage
|
673
|
+
# K8S_POD_LABELS_LAMBDA.call('some-cool-key') #=> 'k8s.pod.labels.some-cool-key'
|
674
|
+
#
|
675
|
+
# Deprecated, use `k8s.pod.label` instead.
|
676
|
+
#
|
677
|
+
# @note Stability Level: development
|
678
|
+
#
|
679
|
+
# @example Sample Values
|
680
|
+
# my-app
|
681
|
+
#
|
682
|
+
# @deprecated {"note": "Replaced by `k8s.pod.label`.", "reason": "renamed", "renamed_to": "k8s.pod.label"}
|
683
|
+
K8S_POD_LABELS_LAMBDA = ->(key) { "k8s.pod.labels.#{key}" }
|
684
|
+
|
685
|
+
# The name of the Pod.
|
686
|
+
#
|
687
|
+
# @note Stability Level: development
|
688
|
+
#
|
689
|
+
# @example Sample Values
|
690
|
+
# opentelemetry-pod-autoconf
|
691
|
+
#
|
692
|
+
K8S_POD_NAME = 'k8s.pod.name'
|
693
|
+
|
694
|
+
# The UID of the Pod.
|
695
|
+
#
|
696
|
+
# @note Stability Level: development
|
697
|
+
#
|
698
|
+
# @example Sample Values
|
699
|
+
# 275ecb36-5aa8-4c2a-9c47-d8bb681b9aff
|
700
|
+
#
|
701
|
+
K8S_POD_UID = 'k8s.pod.uid'
|
702
|
+
|
703
|
+
# Must be called with a key for the full attribute name. See notes below about the expectations
|
704
|
+
# for the state of the key.
|
705
|
+
#
|
706
|
+
# @example Usage
|
707
|
+
# K8S_REPLICASET_ANNOTATION_LAMBDA.call('some-cool-key') #=> 'k8s.replicaset.annotation.some-cool-key'
|
708
|
+
#
|
709
|
+
# The annotation placed on the ReplicaSet, the `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
|
710
|
+
#
|
711
|
+
# Examples:
|
712
|
+
#
|
713
|
+
# - A label `replicas` with value `0` SHOULD be recorded
|
714
|
+
# as the `k8s.replicaset.annotation.replicas` attribute with value `"0"`.
|
715
|
+
# - A label `data` with empty string value SHOULD be recorded as
|
716
|
+
# the `k8s.replicaset.annotation.data` attribute with value `""`.
|
717
|
+
#
|
718
|
+
# @note Stability Level: development
|
719
|
+
#
|
720
|
+
# @example Sample Values
|
721
|
+
# 0
|
722
|
+
#
|
723
|
+
#
|
724
|
+
K8S_REPLICASET_ANNOTATION_LAMBDA = ->(key) { "k8s.replicaset.annotation.#{key}" }
|
725
|
+
|
726
|
+
# Must be called with a key for the full attribute name. See notes below about the expectations
|
727
|
+
# for the state of the key.
|
728
|
+
#
|
729
|
+
# @example Usage
|
730
|
+
# K8S_REPLICASET_LABEL_LAMBDA.call('some-cool-key') #=> 'k8s.replicaset.label.some-cool-key'
|
731
|
+
#
|
732
|
+
# The label placed on the ReplicaSet, the `<key>` being the label name, the value being the label value, even if the value is empty.
|
733
|
+
#
|
734
|
+
# Examples:
|
735
|
+
#
|
736
|
+
# - A label `app` with value `guestbook` SHOULD be recorded
|
737
|
+
# as the `k8s.replicaset.label.app` attribute with value `"guestbook"`.
|
738
|
+
# - A label `injected` with empty string value SHOULD be recorded as
|
739
|
+
# the `k8s.replicaset.label.injected` attribute with value `""`.
|
740
|
+
#
|
741
|
+
# @note Stability Level: development
|
742
|
+
#
|
743
|
+
# @example Sample Values
|
744
|
+
# guestbook
|
745
|
+
#
|
746
|
+
#
|
747
|
+
K8S_REPLICASET_LABEL_LAMBDA = ->(key) { "k8s.replicaset.label.#{key}" }
|
748
|
+
|
749
|
+
# The name of the ReplicaSet.
|
750
|
+
#
|
751
|
+
# @note Stability Level: development
|
752
|
+
#
|
753
|
+
# @example Sample Values
|
754
|
+
# opentelemetry
|
755
|
+
#
|
756
|
+
K8S_REPLICASET_NAME = 'k8s.replicaset.name'
|
757
|
+
|
758
|
+
# The UID of the ReplicaSet.
|
759
|
+
#
|
760
|
+
# @note Stability Level: development
|
761
|
+
#
|
762
|
+
# @example Sample Values
|
763
|
+
# 275ecb36-5aa8-4c2a-9c47-d8bb681b9aff
|
764
|
+
#
|
765
|
+
K8S_REPLICASET_UID = 'k8s.replicaset.uid'
|
766
|
+
|
767
|
+
# The name of the replication controller.
|
768
|
+
#
|
769
|
+
# @note Stability Level: development
|
770
|
+
#
|
771
|
+
# @example Sample Values
|
772
|
+
# opentelemetry
|
773
|
+
#
|
774
|
+
K8S_REPLICATIONCONTROLLER_NAME = 'k8s.replicationcontroller.name'
|
775
|
+
|
776
|
+
# The UID of the replication controller.
|
777
|
+
#
|
778
|
+
# @note Stability Level: development
|
779
|
+
#
|
780
|
+
# @example Sample Values
|
781
|
+
# 275ecb36-5aa8-4c2a-9c47-d8bb681b9aff
|
782
|
+
#
|
783
|
+
K8S_REPLICATIONCONTROLLER_UID = 'k8s.replicationcontroller.uid'
|
784
|
+
|
785
|
+
# The name of the resource quota.
|
786
|
+
#
|
787
|
+
# @note Stability Level: development
|
788
|
+
#
|
789
|
+
# @example Sample Values
|
790
|
+
# opentelemetry
|
791
|
+
#
|
792
|
+
K8S_RESOURCEQUOTA_NAME = 'k8s.resourcequota.name'
|
793
|
+
|
794
|
+
# The name of the K8s resource a resource quota defines.
|
795
|
+
#
|
796
|
+
# The value for this attribute can be either the full `count/<resource>[.<group>]` string (e.g., count/deployments.apps, count/pods), or, for certain core Kubernetes resources, just the resource name (e.g., pods, services, configmaps). Both forms are supported by Kubernetes for object count quotas. See [Kubernetes Resource Quotas documentation](https://kubernetes.io/docs/concepts/policy/resource-quotas/#object-count-quota) for more details.
|
797
|
+
#
|
798
|
+
# @note Stability Level: development
|
799
|
+
#
|
800
|
+
# @example Sample Values
|
801
|
+
# count/replicationcontrollers
|
802
|
+
#
|
803
|
+
K8S_RESOURCEQUOTA_RESOURCE_NAME = 'k8s.resourcequota.resource_name'
|
804
|
+
|
805
|
+
# The UID of the resource quota.
|
806
|
+
#
|
807
|
+
# @note Stability Level: development
|
808
|
+
#
|
809
|
+
# @example Sample Values
|
810
|
+
# 275ecb36-5aa8-4c2a-9c47-d8bb681b9aff
|
811
|
+
#
|
812
|
+
K8S_RESOURCEQUOTA_UID = 'k8s.resourcequota.uid'
|
813
|
+
|
814
|
+
# Must be called with a key for the full attribute name. See notes below about the expectations
|
815
|
+
# for the state of the key.
|
816
|
+
#
|
817
|
+
# @example Usage
|
818
|
+
# K8S_STATEFULSET_ANNOTATION_LAMBDA.call('some-cool-key') #=> 'k8s.statefulset.annotation.some-cool-key'
|
819
|
+
#
|
820
|
+
# The annotation placed on the StatefulSet, the `<key>` being the annotation name, the value being the annotation value, even if the value is empty.
|
821
|
+
#
|
822
|
+
# Examples:
|
823
|
+
#
|
824
|
+
# - A label `replicas` with value `1` SHOULD be recorded
|
825
|
+
# as the `k8s.statefulset.annotation.replicas` attribute with value `"1"`.
|
826
|
+
# - A label `data` with empty string value SHOULD be recorded as
|
827
|
+
# the `k8s.statefulset.annotation.data` attribute with value `""`.
|
828
|
+
#
|
829
|
+
# @note Stability Level: development
|
830
|
+
#
|
831
|
+
# @example Sample Values
|
832
|
+
# 1
|
833
|
+
#
|
834
|
+
#
|
835
|
+
K8S_STATEFULSET_ANNOTATION_LAMBDA = ->(key) { "k8s.statefulset.annotation.#{key}" }
|
836
|
+
|
837
|
+
# Must be called with a key for the full attribute name. See notes below about the expectations
|
838
|
+
# for the state of the key.
|
839
|
+
#
|
840
|
+
# @example Usage
|
841
|
+
# K8S_STATEFULSET_LABEL_LAMBDA.call('some-cool-key') #=> 'k8s.statefulset.label.some-cool-key'
|
842
|
+
#
|
843
|
+
# The label placed on the StatefulSet, the `<key>` being the label name, the value being the label value, even if the value is empty.
|
844
|
+
#
|
845
|
+
# Examples:
|
846
|
+
#
|
847
|
+
# - A label `replicas` with value `0` SHOULD be recorded
|
848
|
+
# as the `k8s.statefulset.label.app` attribute with value `"guestbook"`.
|
849
|
+
# - A label `injected` with empty string value SHOULD be recorded as
|
850
|
+
# the `k8s.statefulset.label.injected` attribute with value `""`.
|
851
|
+
#
|
852
|
+
# @note Stability Level: development
|
853
|
+
#
|
854
|
+
# @example Sample Values
|
855
|
+
# guestbook
|
856
|
+
#
|
857
|
+
#
|
858
|
+
K8S_STATEFULSET_LABEL_LAMBDA = ->(key) { "k8s.statefulset.label.#{key}" }
|
859
|
+
|
860
|
+
# The name of the StatefulSet.
|
861
|
+
#
|
862
|
+
# @note Stability Level: development
|
863
|
+
#
|
864
|
+
# @example Sample Values
|
865
|
+
# opentelemetry
|
866
|
+
#
|
867
|
+
K8S_STATEFULSET_NAME = 'k8s.statefulset.name'
|
868
|
+
|
869
|
+
# The UID of the StatefulSet.
|
870
|
+
#
|
871
|
+
# @note Stability Level: development
|
872
|
+
#
|
873
|
+
# @example Sample Values
|
874
|
+
# 275ecb36-5aa8-4c2a-9c47-d8bb681b9aff
|
875
|
+
#
|
876
|
+
K8S_STATEFULSET_UID = 'k8s.statefulset.uid'
|
877
|
+
|
878
|
+
# The name of K8s [StorageClass](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#storageclass-v1-storage-k8s-io) object.
|
879
|
+
#
|
880
|
+
# @note Stability Level: development
|
881
|
+
#
|
882
|
+
# @example Sample Values
|
883
|
+
# gold.storageclass.storage.k8s.io
|
884
|
+
#
|
885
|
+
K8S_STORAGECLASS_NAME = 'k8s.storageclass.name'
|
886
|
+
|
887
|
+
# The name of the K8s volume.
|
888
|
+
#
|
889
|
+
# @note Stability Level: development
|
890
|
+
#
|
891
|
+
# @example Sample Values
|
892
|
+
# volume0
|
893
|
+
#
|
894
|
+
K8S_VOLUME_NAME = 'k8s.volume.name'
|
895
|
+
|
896
|
+
# The type of the K8s volume.
|
897
|
+
#
|
898
|
+
# @note Stability Level: development
|
899
|
+
#
|
900
|
+
# @example Sample Values
|
901
|
+
# emptyDir
|
902
|
+
# persistentVolumeClaim
|
903
|
+
#
|
904
|
+
K8S_VOLUME_TYPE = 'k8s.volume.type'
|
905
|
+
|
906
|
+
# @!endgroup
|
907
|
+
end
|
908
|
+
end
|
909
|
+
end
|
910
|
+
end
|