[chore] Bring a few attributes that were removed back (as deprecated) (#770)

This commit is contained in:
Liudmila Molkova 2024-02-28 07:24:34 -08:00 committed by GitHub
parent 399978fb27
commit f98fc43b18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 42 additions and 2 deletions

View File

@ -100,7 +100,7 @@ different processes could be listening on TCP port 12345 and UDP port 12345.
## Deprecated Network Attributes
<!-- semconv network-deprecated(omit_requirement_level) -->
<!-- semconv attributes.network.deprecated(omit_requirement_level) -->
| Attribute | Type | Description | Examples |
|---|---|---|---|
| `net.host.name` | string | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br>Deprecated, use `server.address`. | `example.com` |

View File

@ -0,0 +1,10 @@
groups:
- id: attributes.container.deprecated
type: attribute_group
brief: "Describes deprecated container attributes."
attributes:
- id: container.labels
type: template[string]
examples: [ 'container.label.app=nginx' ]
brief: "Deprecated, use `container.label` instead."
deprecated: "Replaced by `container.label`."

View File

@ -0,0 +1,10 @@
groups:
- id: attributes.k8s.deprecated
type: attribute_group
brief: "Describes deprecated k8s attributes."
attributes:
- id: k8s.pod.labels
type: template[string]
examples: ['k8s.pod.label.app=my-app']
brief: "Deprecated, use `k8s.pod.label` instead."
deprecated: "Replaced by `k8s.pod.label`."

View File

@ -1,5 +1,5 @@
groups:
- id: network-deprecated
- id: attributes.network.deprecated
prefix: net
type: attribute_group
brief: >

View File

@ -0,0 +1,20 @@
groups:
- id: attributes.system.deprecated
type: attribute_group
brief: "Deprecated system attributes."
attributes:
- id: system.processes.status
type:
allow_custom_values: true
members:
- id: running
value: 'running'
- id: sleeping
value: 'sleeping'
- id: stopped
value: 'stopped'
- id: defunct
value: 'defunct'
brief: "Deprecated, use `system.process.status` instead."
deprecated: "Replaced by `system.process.status`."
examples: ["running"]