From f98fc43b1806e5a150a9a0fe266069e83b1b3af6 Mon Sep 17 00:00:00 2001 From: Liudmila Molkova Date: Wed, 28 Feb 2024 07:24:34 -0800 Subject: [PATCH] [chore] Bring a few attributes that were removed back (as deprecated) (#770) --- docs/attributes-registry/network.md | 2 +- model/registry/deprecated/container.yaml | 10 ++++++++++ model/registry/deprecated/k8s.yaml | 10 ++++++++++ model/registry/deprecated/network.yaml | 2 +- model/registry/deprecated/system.yaml | 20 ++++++++++++++++++++ 5 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 model/registry/deprecated/container.yaml create mode 100644 model/registry/deprecated/k8s.yaml create mode 100644 model/registry/deprecated/system.yaml diff --git a/docs/attributes-registry/network.md b/docs/attributes-registry/network.md index 9c388f4d7..a06417c9d 100644 --- a/docs/attributes-registry/network.md +++ b/docs/attributes-registry/network.md @@ -100,7 +100,7 @@ different processes could be listening on TCP port 12345 and UDP port 12345. ## Deprecated Network Attributes - + | Attribute | Type | Description | Examples | |---|---|---|---| | `net.host.name` | string | ![Deprecated](https://img.shields.io/badge/-deprecated-red)
Deprecated, use `server.address`. | `example.com` | diff --git a/model/registry/deprecated/container.yaml b/model/registry/deprecated/container.yaml new file mode 100644 index 000000000..8c19e64f8 --- /dev/null +++ b/model/registry/deprecated/container.yaml @@ -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`." diff --git a/model/registry/deprecated/k8s.yaml b/model/registry/deprecated/k8s.yaml new file mode 100644 index 000000000..5793257d7 --- /dev/null +++ b/model/registry/deprecated/k8s.yaml @@ -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`." diff --git a/model/registry/deprecated/network.yaml b/model/registry/deprecated/network.yaml index 135373fa0..63e3959d7 100644 --- a/model/registry/deprecated/network.yaml +++ b/model/registry/deprecated/network.yaml @@ -1,5 +1,5 @@ groups: - - id: network-deprecated + - id: attributes.network.deprecated prefix: net type: attribute_group brief: > diff --git a/model/registry/deprecated/system.yaml b/model/registry/deprecated/system.yaml new file mode 100644 index 000000000..2356ebc56 --- /dev/null +++ b/model/registry/deprecated/system.yaml @@ -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"]