Container

Status: Development

type: container

Description: A container instance.

Attributes:

KeyStabilityRequirement LevelValue TypeDescriptionExample Values
container.idDevelopmentRecommendedstringContainer ID. Usually a UUID, as for example used to identify Docker containers. The UUID might be abbreviated.a3bf90e006b2
container.label.<key>DevelopmentRecommendedstringContainer labels, <key> being the label name, the value being the label value. [1]nginx
container.nameDevelopmentRecommendedstringContainer name used by container runtime.opentelemetry-autoconf
oci.manifest.digestDevelopmentRecommendedstringThe digest of the OCI image manifest. For container images specifically is the digest by which the container image is known. [2]sha256:e4ca62c0d62f3e886e684806dfe9d4e0cda60d54986898173c1083856cfda0f4
container.commandDevelopmentOpt-InstringThe command used to run the container (i.e. the command name). [3]otelcontribcol
container.command_argsDevelopmentOpt-Instring[]All the command arguments (including the command/executable itself) run by the container.["otelcontribcol", "--config", "config.yaml"]
container.command_lineDevelopmentOpt-InstringThe full command run by the container as a single string representing the full command.otelcontribcol --config config.yaml

[1] container.label.<key>: For example, a docker container label app with value nginx SHOULD be recorded as the container.label.app attribute with value "nginx".

[2] oci.manifest.digest: Follows OCI Image Manifest Specification, and specifically the Digest property. An example can be found in Example Image Manifest.

[3] container.command: If using embedded credentials or sensitive data, it is recommended to remove them to prevent potential leakage.