As per #9001 (comment), currently Docker resource detector in Contrib relies on os.Hostname to fetch the ContainerInfo. This setting can be overriden with --hostname (envs like k8s), leading to empty ContainerInfo response from moby client.
Followup includes
- Checking other SDKs implementation.
- Implementing support for cgroup(v1/v2) based container ID fetch
- Develop a test matrix for supported cases [Good to have]
As per #9001 (comment), currently Docker resource detector in Contrib relies on os.Hostname to fetch the ContainerInfo. This setting can be overriden with
--hostname(envs like k8s), leading to empty ContainerInfo response from moby client.Followup includes