Container

状态: 开发中

类型: container

描述: 容器实例。

Attributes

Stability需求级别Value Type描述Example Values
container.idDevelopment推荐字符串容器 ID。通常是一个 UUID,例如用于 标识 Docker 容器。UUID 可能会被缩写。a3bf90e006b2
container.label.<key>Development推荐字符串容器标签,<key> 是标签名称,值是标签的值。[1]nginx
container.nameDevelopment推荐字符串容器运行时使用的容器名称。opentelemetry-autoconf
oci.manifest.digestDevelopment推荐字符串OCI 镜像清单的摘要。对于容器镜像,它是容器镜像所知的摘要。[2]sha256:e4ca62c0d62f3e886e684806dfe9d4e0cda60d54986898173c1083856cfda0f4
container.commandDevelopment选择加入字符串用于运行容器的命令(即命令名称)。[3]otelcontribcol
container.command_argsDevelopment选择加入string[]容器运行的所有命令参数(包括命令/可执行文件本身)。["otelcontribcol", "--config", "config.yaml"]
container.command_lineDevelopment选择加入字符串容器运行的完整命令,表示为单个字符串。otelcontribcol --config config.yaml

[1] container.label.<key>: 例如,值为 nginx 的 Docker 容器标签 app 应记录为 container.label.app 属性,值为 "nginx"

[2] oci.manifest.digest: 遵循 OCI 镜像清单规范,特别是 摘要属性。在 示例镜像清单 中可以找到一个示例。

[3] container.command: 如果使用嵌入式凭证或敏感数据,建议将其移除,以防泄露。