[chore] change prefix for deprecated attributes (#898)

This commit is contained in:
Alexandra Konrad 2024-04-08 16:48:15 +02:00 committed by GitHub
parent 2023cbdaa6
commit 0d2f7deb5c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
17 changed files with 102 additions and 30 deletions

View File

@ -3,6 +3,13 @@
# Container # Container
<!-- toc -->
- [Container Attributes](#container-attributes)
- [Deprecated Container Attributes](#deprecated-container-attributes)
<!-- tocstop -->
## Container Attributes ## Container Attributes
<!-- semconv registry.container(omit_requirement_level) --> <!-- semconv registry.container(omit_requirement_level) -->
@ -37,3 +44,11 @@ The ID is assinged by the container runtime and can vary in different environmen
| `system` | When CPU is used by the system (host OS) | ![Experimental](https://img.shields.io/badge/-experimental-blue) | | `system` | When CPU is used by the system (host OS) | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
| `kernel` | When tasks of the cgroup are in kernel mode (Linux). When all container processes are in kernel mode (Windows). | ![Experimental](https://img.shields.io/badge/-experimental-blue) | | `kernel` | When tasks of the cgroup are in kernel mode (Linux). When all container processes are in kernel mode (Windows). | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
<!-- endsemconv --> <!-- endsemconv -->
## Deprecated Container Attributes
<!-- semconv registry.container.deprecated(omit_requirement_level) -->
| Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---|
| `container.labels.<key>` | string | Deprecated, use `container.label` instead. | `container.label.app=nginx` | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br>Replaced by `container.label`. |
<!-- endsemconv -->

View File

@ -14,7 +14,6 @@
- [Redis Attributes](#redis-attributes) - [Redis Attributes](#redis-attributes)
- [SQL Attributes](#sql-attributes) - [SQL Attributes](#sql-attributes)
- [Deprecated DB Attributes](#deprecated-db-attributes) - [Deprecated DB Attributes](#deprecated-db-attributes)
- [Deprecated Elasticsearch Attributes](#deprecated-elasticsearch-attributes)
<!-- tocstop --> <!-- tocstop -->
@ -213,18 +212,7 @@
## Deprecated DB Attributes ## Deprecated DB Attributes
<!-- semconv attributes.db.deprecated(omit_requirement_level) --> <!-- semconv registry.db.deprecated(omit_requirement_level) -->
| Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---|
| `db.connection_string` | string | Deprecated, use `server.address`, `server.port` attributes instead. | `Server=(localdb)\v11.0;Integrated Security=true;` | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br>"Replaced by `server.address` and `server.port`." |
| `db.elasticsearch.node.name` | string | Deprecated, use `db.instance.id` instead. | `instance-0000000001` | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br>Replaced by `db.instance.id`. |
| `db.jdbc.driver_classname` | string | Removed, no replacement at this time. | `org.postgresql.Driver`; `com.microsoft.sqlserver.jdbc.SQLServerDriver` | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br>Removed as not used. |
| `db.operation` | string | Deprecated, use `db.operation.name` instead. | `findAndModify`; `HMSET`; `SELECT` | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br>Replaced by `db.operation.name`. |
<!-- endsemconv -->
### Deprecated Elasticsearch Attributes
<!-- semconv attributes.db.deprecated(omit_requirement_level) -->
| Attribute | Type | Description | Examples | Stability | | Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---| |---|---|---|---|---|
| `db.connection_string` | string | Deprecated, use `server.address`, `server.port` attributes instead. | `Server=(localdb)\v11.0;Integrated Security=true;` | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br>"Replaced by `server.address` and `server.port`." | | `db.connection_string` | string | Deprecated, use `server.address`, `server.port` attributes instead. | `Server=(localdb)\v11.0;Integrated Security=true;` | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br>"Replaced by `server.address` and `server.port`." |

View File

@ -3,6 +3,13 @@
# HTTP # HTTP
<!-- toc -->
- [HTTP Attributes](#http-attributes)
- [Deprecated HTTP Attributes](#deprecated-http-attributes)
<!-- tocstop -->
## HTTP Attributes ## HTTP Attributes
<!-- semconv registry.http(omit_requirement_level) --> <!-- semconv registry.http(omit_requirement_level) -->
@ -74,7 +81,7 @@ SHOULD include the [application root](/docs/http/http-spans.md#http-server-defin
## Deprecated HTTP Attributes ## Deprecated HTTP Attributes
<!-- semconv attributes.http.deprecated(omit_requirement_level) --> <!-- semconv registry.http.deprecated(omit_requirement_level) -->
| Attribute | Type | Description | Examples | Stability | | Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---| |---|---|---|---|---|
| `http.flavor` | string | Deprecated, use `network.protocol.name` instead. | `1.0` | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br>Replaced by `network.protocol.name`. | | `http.flavor` | string | Deprecated, use `network.protocol.name` instead. | `1.0` | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br>Replaced by `network.protocol.name`. |

View File

@ -1,6 +1,13 @@
# Kubernetes # Kubernetes
## Kubernetes Resource Attributes <!-- toc -->
- [Kubernetes Attributes](#kubernetes-attributes)
- [Deprecated Kubernetes Attributes](#deprecated-kubernetes-attributes)
<!-- tocstop -->
## Kubernetes Attributes
<!-- semconv registry.k8s(omit_requirement_level) --> <!-- semconv registry.k8s(omit_requirement_level) -->
| Attribute | Type | Description | Examples | Stability | | Attribute | Type | Description | Examples | Stability |
@ -52,3 +59,11 @@ Which states:
Therefore, UIDs between clusters should be extremely unlikely to Therefore, UIDs between clusters should be extremely unlikely to
conflict. conflict.
<!-- endsemconv --> <!-- endsemconv -->
## Deprecated Kubernetes Attributes
<!-- semconv registry.k8s.deprecated(omit_requirement_level) -->
| Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---|
| `k8s.pod.labels.<key>` | string | Deprecated, use `k8s.pod.label` instead. | `k8s.pod.label.app=my-app` | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br>Replaced by `k8s.pod.label`. |
<!-- endsemconv -->

View File

@ -174,7 +174,7 @@ size should be used.
## Deprecated Messaging Attributes ## Deprecated Messaging Attributes
<!-- semconv attributes.messaging.deprecated(omit_requirement_level) --> <!-- semconv registry.messaging.deprecated(omit_requirement_level) -->
| Attribute | Type | Description | Examples | Stability | | Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---| |---|---|---|---|---|
| `messaging.kafka.destination.partition` | int | "Deprecated, use `messaging.destination.partition.id` instead." | `2` | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br>Replaced by `messaging.destination.partition.id`. | | `messaging.kafka.destination.partition` | int | "Deprecated, use `messaging.destination.partition.id` instead." | `2` | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br>Replaced by `messaging.destination.partition.id`. |

View File

@ -5,6 +5,13 @@
These attributes may be used for any network related operation. These attributes may be used for any network related operation.
<!-- toc -->
- [Network Attributes](#network-attributes)
- [Deprecated Network Attributes](#deprecated-network-attributes)
<!-- tocstop -->
## Network Attributes ## Network Attributes
<!-- semconv registry.network(omit_requirement_level) --> <!-- semconv registry.network(omit_requirement_level) -->
@ -100,7 +107,7 @@ different processes could be listening on TCP port 12345 and UDP port 12345.
## Deprecated Network Attributes ## Deprecated Network Attributes
<!-- semconv attributes.network.deprecated(omit_requirement_level) --> <!-- semconv registry.network.deprecated(omit_requirement_level) -->
| Attribute | Type | Description | Examples | Stability | | Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---| |---|---|---|---|---|
| `net.host.name` | string | Deprecated, use `server.address`. | `example.com` | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br>Replaced by `server.address`. | | `net.host.name` | string | Deprecated, use `server.address`. | `example.com` | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br>Replaced by `server.address`. |

View File

@ -3,7 +3,14 @@
# OpenTelemetry # OpenTelemetry
## Scope Attributes <!-- toc -->
- [OpenTelemetry Attributes](#opentelemetry-attributes)
- [Deprecated OpenTelemetry Attributes](#deprecated-opentelemetry-attributes)
<!-- tocstop -->
## OpenTelemetry Attributes
<!-- semconv registry.otel.scope(omit_requirement_level) --> <!-- semconv registry.otel.scope(omit_requirement_level) -->
| Attribute | Type | Description | Examples | Stability | | Attribute | Type | Description | Examples | Stability |
@ -11,3 +18,12 @@
| `otel.scope.name` | string | The name of the instrumentation scope - (`InstrumentationScope.Name` in OTLP). | `io.opentelemetry.contrib.mongodb` | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | | `otel.scope.name` | string | The name of the instrumentation scope - (`InstrumentationScope.Name` in OTLP). | `io.opentelemetry.contrib.mongodb` | ![Stable](https://img.shields.io/badge/-stable-lightgreen) |
| `otel.scope.version` | string | The version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP). | `1.0.0` | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | | `otel.scope.version` | string | The version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP). | `1.0.0` | ![Stable](https://img.shields.io/badge/-stable-lightgreen) |
<!-- endsemconv --> <!-- endsemconv -->
## Deprecated OpenTelemetry Attributes
<!-- semconv registry.otel.library.deprecated(omit_requirement_level) -->
| Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---|
| `otel.library.name` | string | None | `io.opentelemetry.contrib.mongodb` | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br>use the `otel.scope.name` attribute. |
| `otel.library.version` | string | None | `1.0.0` | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br>use the `otel.scope.version` attribute. |
<!-- endsemconv -->

View File

@ -3,6 +3,13 @@
# RPC # RPC
<!-- toc -->
- [RPC Attributes](#rpc-attributes)
- [Deprecated RPC Attributes](#deprecated-rpc-attributes)
<!-- tocstop -->
## RPC Attributes ## RPC Attributes
RPC attributes are intended to be used in the context of events related to remote procedure calls (RPC). RPC attributes are intended to be used in the context of events related to remote procedure calls (RPC).
@ -102,3 +109,21 @@ RPC attributes are intended to be used in the context of events related to remot
| `apache_dubbo` | Apache Dubbo | ![Experimental](https://img.shields.io/badge/-experimental-blue) | | `apache_dubbo` | Apache Dubbo | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
| `connect_rpc` | Connect RPC | ![Experimental](https://img.shields.io/badge/-experimental-blue) | | `connect_rpc` | Connect RPC | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
<!-- endsemconv --> <!-- endsemconv -->
## Deprecated RPC Attributes
<!-- semconv registry.rpc.deprecated(omit_requirement_level) -->
| Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---|
| `message.compressed_size` | int | Deprecated, use `rpc.message.compressed_size` instead. | | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br>Replaced by `rpc.message.compressed_size`. |
| `message.id` | int | Deprecated, use `rpc.message.id` instead. | | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br>Replaced by `rpc.message.id`. |
| `message.type` | string | Deprecated, use `rpc.message.type` instead. | `SENT` | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br>Replaced by `rpc.message.type`. |
| `message.uncompressed_size` | int | Deprecated, use `rpc.message.uncompressed_size` instead. | | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br>Replaced by `rpc.message.uncompressed_size`. |
`message.type` MUST be one of the following:
| Value | Description | Stability |
|---|---|---|
| `SENT` | sent | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
| `RECEIVED` | received | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
<!-- endsemconv -->

View File

@ -1,5 +1,5 @@
groups: groups:
- id: attributes.container.deprecated - id: registry.container.deprecated
type: attribute_group type: attribute_group
brief: "Describes deprecated container attributes." brief: "Describes deprecated container attributes."
attributes: attributes:

View File

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

View File

@ -1,5 +1,5 @@
groups: groups:
- id: attributes.http.deprecated - id: registry.http.deprecated
type: attribute_group type: attribute_group
brief: "Describes deprecated HTTP attributes." brief: "Describes deprecated HTTP attributes."
prefix: http prefix: http

View File

@ -1,5 +1,5 @@
groups: groups:
- id: attributes.k8s.deprecated - id: registry.k8s.deprecated
type: attribute_group type: attribute_group
brief: "Describes deprecated k8s attributes." brief: "Describes deprecated k8s attributes."
attributes: attributes:

View File

@ -1,5 +1,5 @@
groups: groups:
- id: attributes.messaging.deprecated - id: registry.messaging.deprecated
type: attribute_group type: attribute_group
brief: "Describes deprecated messaging attributes." brief: "Describes deprecated messaging attributes."
attributes: attributes:

View File

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

View File

@ -1,9 +1,8 @@
groups: groups:
- id: otel.library - id: registry.otel.library.deprecated
prefix: otel.library prefix: otel.library
type: resource type: attribute_group
brief: > brief: "Describes deprecated otel.library attributes."
Span attributes used by non-OTLP exporters to represent OpenTelemetry Scope's concepts.
attributes: attributes:
- id: name - id: name
type: string type: string

View File

@ -1,5 +1,5 @@
groups: groups:
- id: attributes.rpc.deprecated - id: registry.rpc.deprecated
type: attribute_group type: attribute_group
brief: 'Deprecated rpc message attributes.' brief: 'Deprecated rpc message attributes.'
attributes: attributes:

View File

@ -1,5 +1,5 @@
groups: groups:
- id: attributes.system.deprecated - id: registry.system.deprecated
type: attribute_group type: attribute_group
brief: "Deprecated system attributes." brief: "Deprecated system attributes."
attributes: attributes: