Skip to main content

K8S_SERVICE_LABEL

Constant K8S_SERVICE_LABEL 

pub const K8S_SERVICE_LABEL: &'static str;
Available on crate features opentelemetry and semconv_experimental only.
Expand description

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

§Notes

Examples:

  • A label app with value my-service SHOULD be recorded as the k8s.service.label.app attribute with value "my-service".
  • A label data with empty string value SHOULD be recorded as the k8s.service.label.data attribute with value "".

§Examples

  • "my-service"
  • ""