open-telemetry / opentelemetry-collector-contrib

Contrib repository for the OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
3.11k stars 2.39k forks source link

[receiver/k8scluster] Add container image cryptographic digest attribute (container.image.id) #36280

Open rogercoll opened 2 weeks ago

rogercoll commented 2 weeks ago

Component(s)

receiver/k8scluster

Is your feature request related to a problem? Please describe.

If a container that is being instrumented using the k8scluster receiver has been deployed using a container image that contains a cryptographic digest, the receiver does not produce any attribute related to that digest.

Describe the solution you'd like

Populate the container.image.id resource attribute when an image ID contains a digest.

Describe alternatives you've considered

No response

Additional context

Correctly parsing the image takes precedence: https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/36279

github-actions[bot] commented 2 weeks ago

Pinging code owners: