semconv.com

k8s.service.selector

Developmenttemplate[string]as of v1.44.0

The selector key-value pair placed on the Service, the <key> being the selector key, the value being the selector value.

These selectors are used to correlate with pod labels. Each selector key-value pair becomes a separate attribute.

Examples:

- A selector app=my-app SHOULD be recorded as the k8s.service.selector.app attribute with value "my-app". - A selector version=v1 SHOULD be recorded as the k8s.service.selector.version attribute with value "v1".

Examples

Used by

entitys (1)

  • k8s.service (opt-in)

* required on that signal.

History

  1. v1.40.0

    Added as development.

Definition sourceRegistry docsJSON