Skip to content

Commit

Permalink
[chore] Bring a few attributes that were removed back (as deprecated) (
Browse files Browse the repository at this point in the history
  • Loading branch information
lmolkova authored Feb 28, 2024
1 parent 399978f commit f98fc43
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/attributes-registry/network.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand Down
10 changes: 10 additions & 0 deletions model/registry/deprecated/container.yaml
Original file line number Diff line number Diff line change
@@ -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`."
10 changes: 10 additions & 0 deletions model/registry/deprecated/k8s.yaml
Original file line number Diff line number Diff line change
@@ -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`."
2 changes: 1 addition & 1 deletion model/registry/deprecated/network.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
groups:
- id: network-deprecated
- id: attributes.network.deprecated
prefix: net
type: attribute_group
brief: >
Expand Down
20 changes: 20 additions & 0 deletions model/registry/deprecated/system.yaml
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit f98fc43

Please sign in to comment.