K8sExperimentalAttributes

org.typelevel.otel4s.semconv.experimental.attributes.K8sExperimentalAttributes

Attributes

Source
K8sExperimentalAttributes.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete fields

The name of the cluster.

The name of the cluster.

Attributes

Source
K8sExperimentalAttributes.scala

A pseudo-ID for the cluster, set to the UID of the kube-system namespace.

A pseudo-ID for the cluster, set to the UID of the kube-system namespace.

Attributes

Note

  • K8s doesn't have support for obtaining a cluster ID. If this is ever added, we will recommend collecting the k8s.cluster.uid through the official APIs. In the meantime, we are able to use the uid of the kube-system namespace as a proxy for cluster ID. Read on for the rationale.

  • Every object created in a K8s cluster is assigned a distinct UID. The kube-system namespace is used by Kubernetes itself and will exist for the lifetime of the cluster. Using the uid of the kube-system namespace is a reasonable proxy for the K8s ClusterID as it will only change if the cluster is rebuilt. Furthermore, Kubernetes UIDs are UUIDs as standardized by <a href="https://www.itu.int/ITU-T/studygroups/com17/oid.html">ISO/IEC 9834-8 and ITU-T X.667. Which states:

    - If generated according to one of the mechanisms defined in Rec.
    - ITU-T X.667 | ISO/IEC 9834-8, a UUID is either guaranteed to be different from all other UUIDs generated before 3603 A.D., or is extremely likely to be different (depending on the mechanism chosen). - Therefore, UIDs between clusters should be extremely unlikely to conflict.

Source
K8sExperimentalAttributes.scala

The name of the Container from Pod specification, must be unique within a Pod.

The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different globally unique name (container.name).

Attributes

Source
K8sExperimentalAttributes.scala

Number of times the container was restarted.

Number of times the container was restarted. This attribute can be used to identify a particular container (running or stopped) within a container spec.

Attributes

Source
K8sExperimentalAttributes.scala

The name of the CronJob.

The name of the CronJob.

Attributes

Source
K8sExperimentalAttributes.scala

The UID of the CronJob.

The UID of the CronJob.

Attributes

Source
K8sExperimentalAttributes.scala

The name of the DaemonSet.

The name of the DaemonSet.

Attributes

Source
K8sExperimentalAttributes.scala

The UID of the DaemonSet.

The UID of the DaemonSet.

Attributes

Source
K8sExperimentalAttributes.scala

The name of the Deployment.

The name of the Deployment.

Attributes

Source
K8sExperimentalAttributes.scala

The UID of the Deployment.

The UID of the Deployment.

Attributes

Source
K8sExperimentalAttributes.scala

The name of the Job.

The name of the Job.

Attributes

Source
K8sExperimentalAttributes.scala

The UID of the Job.

The UID of the Job.

Attributes

Source
K8sExperimentalAttributes.scala

The name of the namespace that the pod is running in.

The name of the namespace that the pod is running in.

Attributes

Source
K8sExperimentalAttributes.scala

The name of the Node.

The name of the Node.

Attributes

Source
K8sExperimentalAttributes.scala

The UID of the Node.

The UID of the Node.

Attributes

Source
K8sExperimentalAttributes.scala

The annotation key-value pairs placed on the Pod, the <key> being the annotation name, the value being the annotation value.

The annotation key-value pairs placed on the Pod, the <key> being the annotation name, the value being the annotation value.

Attributes

Source
K8sExperimentalAttributes.scala

The label key-value pairs placed on the Pod, the <key> being the label name, the value being the label value.

The label key-value pairs placed on the Pod, the <key> being the label name, the value being the label value.

Attributes

Source
K8sExperimentalAttributes.scala

The name of the Pod.

The name of the Pod.

Attributes

Source
K8sExperimentalAttributes.scala

The UID of the Pod.

The UID of the Pod.

Attributes

Source
K8sExperimentalAttributes.scala

The name of the ReplicaSet.

The name of the ReplicaSet.

Attributes

Source
K8sExperimentalAttributes.scala

The UID of the ReplicaSet.

The UID of the ReplicaSet.

Attributes

Source
K8sExperimentalAttributes.scala

The name of the StatefulSet.

The name of the StatefulSet.

Attributes

Source
K8sExperimentalAttributes.scala

The UID of the StatefulSet.

The UID of the StatefulSet.

Attributes

Source
K8sExperimentalAttributes.scala

Deprecated fields

Deprecated, use k8s.pod.label instead.

Deprecated, use k8s.pod.label instead.

Attributes

Deprecated
true
Source
K8sExperimentalAttributes.scala