Skip to content

Commit

Permalink
support k8s.pod.hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
alburthoffman committed Feb 15, 2023
1 parent f39c662 commit a166884
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ release.

- Move X-Ray Env Variable propagation to span link instead of parent for AWS Lambda.
([#3166](https://github.com/open-telemetry/opentelemetry-specification/pull/3166))
- Support pod.spec.hostname in resource k8s.pod
([#3201])[https://github.com/open-telemetry/opentelemetry-specification/pull/3201]

### Compatibility

Expand Down
5 changes: 5 additions & 0 deletions semantic_conventions/resource/k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ groups:
brief: >
The name of the Pod.
examples: ['opentelemetry-pod-autoconf']
- id: hostname
type: string
brief: >
The hostname in the pod spec. refer to [pod.spec.hostname](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-hostname-and-subdomain-fields)
examples: ['opentelemetry-pod-autoconf']

- id: k8s.container
prefix: k8s.container
Expand Down
1 change: 1 addition & 0 deletions specification/resource/semantic_conventions/k8s.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ containers on your cluster.
|---|---|---|---|---|
| `k8s.pod.uid` | string | The UID of the Pod. | `275ecb36-5aa8-4c2a-9c47-d8bb681b9aff` | Recommended |
| `k8s.pod.name` | string | The name of the Pod. | `opentelemetry-pod-autoconf` | Recommended |
| `k8s.pod.hostname` | string | The hostname in the pod spec. refer to [pod.spec.hostname](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-hostname-and-subdomain-fields) | `opentelemetry-pod-autoconf` | Recommended |
<!-- endsemconv -->

## Container
Expand Down

0 comments on commit a166884

Please sign in to comment.