kubernetes/vendor/go.opentelemetry.io/otel/sdk/resource/container.go

type containerIDProvider

var containerID

var cgroupContainerIDRe

type cgroupContainerIDDetector

const cgroupPath

// Detect returns a *Resource that describes the id of the container.
// If no container id found, an empty resource will be returned.
func (cgroupContainerIDDetector) Detect(ctx context.Context) (*Resource, error) {}

var defaultOSStat

var osStat

var defaultOSOpen

var osOpen

// getContainerIDFromCGroup returns the id of the container from the cgroup file.
// If no container id found, an empty string will be returned.
func getContainerIDFromCGroup() (string, error) {}

// getContainerIDFromReader returns the id of the container from reader.
func getContainerIDFromReader(reader io.Reader) string {}

// getContainerIDFromLine returns the id of the container from one string line.
func getContainerIDFromLine(line string) string {}