Constant K8S_SERVICE_SELECTOR
pub const K8S_SERVICE_SELECTOR: &'static str;Available on crate features
opentelemetry and semconv_experimental only.Expand description
The selector key-value pair placed on the Service, the key being the selector key, the value being the selector value.
§Notes
These selectors are used to correlate with pod labels. Each selector key-value pair becomes a separate attribute.
Examples:
- A selector
app=my-appSHOULD be recorded as thek8s.service.selector.appattribute with value"my-app". - A selector
version=v1SHOULD be recorded as thek8s.service.selector.versionattribute with value"v1".
§Examples
"my-app""v1"