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/scrapewith valuetrueSHOULD be recorded as thek8s.service.annotation.prometheus.io/scrapeattribute with value"true". - An annotation
datawith empty string value SHOULD be recorded as thek8s.service.annotation.dataattribute with value"".
§Examples
"true"""