host.id
is set to empty value in containerized setups
#4312
Labels
area:resources
Part of OpenTelemetry resources
bug
Something isn't working
help wanted
Extra attention is needed
Milestone
Description
The
resource.WithHostID
option sets thehost.id
resource attribute to the empty string on (certain) containerized setups. The attribute should be set in accordance to the specification which states thathost.id
should be a:An empty string is not a unique host ID.
Environment
Steps To Reproduce
Run the binary resulting from the following program:
On any of the following images:
alpine
ubuntu
centos
FROM scratch
image (see [processor/resourcedetection] system detector setshost.id
to an empty value on containerized setups opentelemetry-collector-contrib#24230)The resulting output is:
Expected behavior
The
host.id
resource attribute is either not set or set to a value that is specification compliant.cc @mwear. I have not tried to reproduce this on opentelemetry-js but it's likely the issue occurs there as well.
The text was updated successfully, but these errors were encountered: