Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"]
Loading