Skip to main content

K8S_SERVICE_ANNOTATION

Constant K8S_SERVICE_ANNOTATION 

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

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

§Notes

Examples:

  • An annotation prometheus.io/scrape with value true SHOULD be recorded as the k8s.service.annotation.prometheus.io/scrape attribute with value "true".
  • An annotation data with empty string value SHOULD be recorded as the k8s.service.annotation.data attribute with value "".

§Examples

  • "true"
  • ""