From fff71c5790d24af6715338258731cd0143f0d4fc Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Wed, 10 Jul 2024 14:02:28 -0700 Subject: [PATCH] Clarify Redis db.namespace is a string value --- docs/database/redis.md | 2 +- model/trace/database.yaml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/database/redis.md b/docs/database/redis.md index bbe41a21c2..564e119af6 100644 --- a/docs/database/redis.md +++ b/docs/database/redis.md @@ -23,7 +23,7 @@ described on this page. | Attribute | Type | Description | Examples | [Requirement Level](https://opentelemetry.io/docs/specs/semconv/general/attribute-requirement-level/) | Stability | |---|---|---|---|---|---| -| [`db.namespace`](/docs/attributes-registry/db.md) | string | The index of the database being accessed as used in the [`SELECT` command](https://redis.io/commands/select). [1] | `0`; `1`; `15` | `Conditionally Required` If and only if it can be captured reliably. | ![Experimental](https://img.shields.io/badge/-experimental-blue) | +| [`db.namespace`](/docs/attributes-registry/db.md) | string | The index of the database being accessed as used in the [`SELECT` command](https://redis.io/commands/select) (captured as a string). [1] | `0`; `1`; `15` | `Conditionally Required` If and only if it can be captured reliably. | ![Experimental](https://img.shields.io/badge/-experimental-blue) | | [`db.operation.name`](/docs/attributes-registry/db.md) | string | The name of the operation or command being executed. [2] | `findAndModify`; `HMSET`; `SELECT` | `Conditionally Required` [3] | ![Experimental](https://img.shields.io/badge/-experimental-blue) | | [`error.type`](/docs/attributes-registry/error.md) | string | Describes a class of error the operation ended with. [4] | `timeout`; `java.net.UnknownHostException`; `server_certificate_invalid`; `500` | `Conditionally Required` If and only if the operation failed. | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | | [`server.port`](/docs/attributes-registry/server.md) | int | Server port number. [5] | `80`; `8080`; `443` | `Conditionally Required` [6] | ![Stable](https://img.shields.io/badge/-stable-lightgreen) | diff --git a/model/trace/database.yaml b/model/trace/database.yaml index 24d92636dd..8140688b97 100644 --- a/model/trace/database.yaml +++ b/model/trace/database.yaml @@ -162,7 +162,8 @@ groups: attributes: - ref: db.namespace brief: > - The index of the database being accessed as used in the [`SELECT` command](https://redis.io/commands/select). + The index of the database being accessed as used in the [`SELECT` command](https://redis.io/commands/select) + (captured as a string). requirement_level: conditionally_required: If and only if it can be captured reliably. note: >