Skip to main content

K8S_NAMESPACE_LABEL

Constant K8S_NAMESPACE_LABEL 

pub const K8S_NAMESPACE_LABEL: &'static str;
Available on crate feature opentelemetry only.
Expand description

The label placed on the Namespace, the key being the label name, the value being the label value, even if the value is empty.

§Notes

Examples:

  • A label kubernetes.io/metadata.name with value default SHOULD be recorded as the k8s.namespace.label.kubernetes.io/metadata.name attribute with value "default".
  • A label data with empty string value SHOULD be recorded as the k8s.namespace.label.data attribute with value "".

§Examples

  • "default"
  • ""