You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/database/cassandra.md
+6
Original file line number
Diff line number
Diff line change
@@ -43,21 +43,25 @@ The Semantic Conventions for [Cassandra](https://cassandra.apache.org/) extend a
43
43
**[1]:** It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization.
44
44
If the collection name is parsed from the query text, it SHOULD be the first collection name found in the query and it SHOULD match the value provided in the query text including any schema and database name prefix.
45
45
For batch operations, if the individual operations are known to have the same collection name then that collection name SHOULD be used, otherwise `db.collection.name` SHOULD NOT be captured.
46
+
This attribute has stability level RELEASE CANDIDATE.
46
47
47
48
**[2]:** If readily available. The collection name MAY be parsed from the query text, in which case it SHOULD be the first collection name found in the query.
48
49
49
50
**[3]:** If a database system has multiple namespace components, they SHOULD be concatenated (potentially using database system specific conventions) from most general to most specific namespace component, and more specific namespaces SHOULD NOT be captured without the more general namespaces, to ensure that "startswith" queries for the more general namespaces will be valid.
50
51
Semantic conventions for individual database systems SHOULD document what `db.namespace` means in the context of that system.
51
52
It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization.
53
+
This attribute has stability level RELEASE CANDIDATE.
52
54
53
55
**[4]:** It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization.
54
56
If the operation name is parsed from the query text, it SHOULD be the first operation name found in the query.
55
57
For batch operations, if the individual operations are known to have the same operation name then that operation name SHOULD be used prepended by `BATCH `, otherwise `db.operation.name` SHOULD be `BATCH` or some other database system specific term if more applicable.
58
+
This attribute has stability level RELEASE CANDIDATE.
56
59
57
60
**[5]:** If readily available. The operation name MAY be parsed from the query text, in which case it SHOULD be the first operation name found in the query.
58
61
59
62
**[6]:** The status code returned by the database. Usually it represents an error code, but may also represent partial success, warning, or differentiate between various types of successful outcomes.
60
63
Semantic conventions for individual database systems SHOULD document what `db.response.status_code` means in the context of that system.
64
+
This attribute has stability level RELEASE CANDIDATE.
61
65
62
66
**[7]:** If the operation failed and status code is available.
63
67
@@ -74,6 +78,7 @@ Instrumentations SHOULD document how `error.type` is populated.
74
78
**[12]:** For sanitization see [Sanitization of `db.query.text`](../../docs/database/database-spans.md#sanitization-of-dbquerytext).
75
79
For batch operations, if the individual operations are known to have the same query text then that query text SHOULD be used, otherwise all of the individual query texts SHOULD be concatenated with separator `; ` or some other database system specific separator if more applicable.
76
80
Even though parameterized query text can potentially have sensitive data, by using a parameterized query the user is giving a strong signal that any sensitive data will be passed as parameter values, and the benefit to observability of capturing the static part of the query text by default outweighs the risk.
81
+
This attribute has stability level RELEASE CANDIDATE.
77
82
78
83
**[13]:** SHOULD be collected by default only if there is sanitization that excludes sensitive information. See [Sanitization of `db.query.text`](../../docs/database/database-spans.md#sanitization-of-dbquerytext).
79
84
@@ -83,6 +88,7 @@ Even though parameterized query text can potentially have sensitive data, by usi
83
88
84
89
**[16]:** Query parameters should only be captured when `db.query.text` is parameterized with placeholders.
85
90
If a parameter has no name and instead is referenced only by index, then `<key>` SHOULD be the 0-based index.
91
+
This attribute has stability level RELEASE CANDIDATE.
Copy file name to clipboardexpand all lines: docs/database/cosmosdb.md
+3
Original file line number
Diff line number
Diff line change
@@ -175,6 +175,7 @@ additional values when introducing new operations.
175
175
176
176
**[5]:** The status code returned by the database. Usually it represents an error code, but may also represent partial success, warning, or differentiate between various types of successful outcomes.
177
177
Semantic conventions for individual database systems SHOULD document what `db.response.status_code` means in the context of that system.
178
+
This attribute has stability level RELEASE CANDIDATE.
178
179
179
180
**[6]:** The `error.type` SHOULD match the `db.response.status_code` returned by the database or the client library, or the canonical name of exception that occurred.
180
181
When using canonical exception type name, instrumentation SHOULD do the best effort to report the most relevant type. For example, if the original exception is wrapped into a generic one, the original exception SHOULD be preferred.
@@ -189,6 +190,7 @@ Instrumentations SHOULD document how `error.type` is populated.
189
190
**[10]:** For sanitization see [Sanitization of `db.query.text`](../../docs/database/database-spans.md#sanitization-of-dbquerytext).
190
191
For batch operations, if the individual operations are known to have the same query text then that query text SHOULD be used, otherwise all of the individual query texts SHOULD be concatenated with separator `; ` or some other database system specific separator if more applicable.
191
192
Even though parameterized query text can potentially have sensitive data, by using a parameterized query the user is giving a strong signal that any sensitive data will be passed as parameter values, and the benefit to observability of capturing the static part of the query text by default outweighs the risk.
193
+
This attribute has stability level RELEASE CANDIDATE.
192
194
193
195
**[11]:** SHOULD be collected by default only if there is sanitization that excludes sensitive information. See [Sanitization of `db.query.text`](../../docs/database/database-spans.md#sanitization-of-dbquerytext).
194
196
@@ -200,6 +202,7 @@ Even though parameterized query text can potentially have sensitive data, by usi
200
202
201
203
**[14]:** Query parameters should only be captured when `db.query.text` is parameterized with placeholders.
202
204
If a parameter has no name and instead is referenced only by index, then `<key>` SHOULD be the 0-based index.
205
+
This attribute has stability level RELEASE CANDIDATE.
Copy file name to clipboardexpand all lines: docs/database/couchdb.md
+1
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@ The Semantic Conventions for [CouchDB](https://couchdb.apache.org/) extend and o
35
35
36
36
**[3]:** The status code returned by the database. Usually it represents an error code, but may also represent partial success, warning, or differentiate between various types of successful outcomes.
37
37
Semantic conventions for individual database systems SHOULD document what `db.response.status_code` means in the context of that system.
38
+
This attribute has stability level RELEASE CANDIDATE.
38
39
39
40
**[4]:** If response was received and the HTTP response code is available.
|[`server.address`](/docs/attributes-registry/server.md)| string | Name of the database host. [13]|`example.com`; `10.1.2.80`; `/tmp/my.sock`|`Recommended`||
100
96
101
97
**[1]:** The actual DBMS may differ from the one identified by the client. For example, when using PostgreSQL client libraries to connect to a CockroachDB, the `db.system` is set to `postgresql` based on the instrumentation's best knowledge.
98
+
This attribute has stability level RELEASE CANDIDATE.
102
99
103
100
**[2]:** It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization.
104
101
If the collection name is parsed from the query text, it SHOULD be the first collection name found in the query and it SHOULD match the value provided in the query text including any schema and database name prefix.
105
102
For batch operations, if the individual operations are known to have the same collection name then that collection name SHOULD be used, otherwise `db.collection.name` SHOULD NOT be captured.
103
+
This attribute has stability level RELEASE CANDIDATE.
106
104
107
105
**[3]:** If readily available. The collection name MAY be parsed from the query text, in which case it SHOULD be the first collection name in the query.
108
106
109
107
**[4]:** If a database system has multiple namespace components, they SHOULD be concatenated (potentially using database system specific conventions) from most general to most specific namespace component, and more specific namespaces SHOULD NOT be captured without the more general namespaces, to ensure that "startswith" queries for the more general namespaces will be valid.
110
108
Semantic conventions for individual database systems SHOULD document what `db.namespace` means in the context of that system.
111
109
It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization.
110
+
This attribute has stability level RELEASE CANDIDATE.
112
111
113
112
**[5]:** It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization.
114
113
If the operation name is parsed from the query text, it SHOULD be the first operation name found in the query.
115
114
For batch operations, if the individual operations are known to have the same operation name then that operation name SHOULD be used prepended by `BATCH `, otherwise `db.operation.name` SHOULD be `BATCH` or some other database system specific term if more applicable.
115
+
This attribute has stability level RELEASE CANDIDATE.
116
116
117
117
**[6]:** If readily available. The operation name MAY be parsed from the query text, in which case it SHOULD be the first operation name found in the query.
118
118
119
119
**[7]:** The status code returned by the database. Usually it represents an error code, but may also represent partial success, warning, or differentiate between various types of successful outcomes.
120
120
Semantic conventions for individual database systems SHOULD document what `db.response.status_code` means in the context of that system.
121
+
This attribute has stability level RELEASE CANDIDATE.
121
122
122
123
**[8]:** If the operation failed and status code is available.
123
124
@@ -166,20 +167,20 @@ If a database operation involved multiple network calls (for example retries), t
0 commit comments