Skip to content

Commit

Permalink
Clarify difference between container.name and k8s.container.name
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryax committed Sep 30, 2021
1 parent 90d9aab commit 0b24e0e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion semantic_conventions/resource/container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ groups:
- id: name
type: string
brief: >
Container name.
Container name used by container runtime.
examples: ['opentelemetry-autoconf']
- id: id
type: string
Expand Down
4 changes: 3 additions & 1 deletion semantic_conventions/resource/k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ groups:
- id: name
type: string
brief: >
The name of the Container in a Pod template.
The name of the Container from Pod specification, must be unique
within a Pod. Container runtime usually uses different name unique
within a Cluster (`container.name`).
examples: ['redis']

- id: k8s.replicaset
Expand Down
2 changes: 1 addition & 1 deletion specification/resource/semantic_conventions/container.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<!-- semconv container -->
| Attribute | Type | Description | Examples | Required |
|---|---|---|---|---|
| `container.name` | string | Container name. | `opentelemetry-autoconf` | No |
| `container.name` | string | Container name used by container runtime. | `opentelemetry-autoconf` | No |
| `container.id` | string | Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification). The UUID might be abbreviated. | `a3bf90e006b2` | No |
| `container.runtime` | string | The container runtime managing this container. | `docker`; `containerd`; `rkt` | No |
| `container.image.name` | string | Name of the image the container was built on. | `gcr.io/opentelemetry/operator` | No |
Expand Down
2 changes: 1 addition & 1 deletion specification/resource/semantic_conventions/k8s.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ to a running container.
<!-- semconv k8s.container -->
| Attribute | Type | Description | Examples | Required |
|---|---|---|---|---|
| `k8s.container.name` | string | The name of the Container in a Pod template. | `redis` | No |
| `k8s.container.name` | string | The name of the Container from Pod specification, must be unique within a Pod. Container runtime usually uses different name unique within a Cluster (`container.name`). | `redis` | No |
<!-- endsemconv -->

## ReplicaSet
Expand Down

0 comments on commit 0b24e0e

Please sign in to comment.