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
| <aid="db-system-name"href="#db-system-name">`db.system.name`</a> | string | The database management system (DBMS) product as identified by the client instrumentation. [9]|`other_sql`; `softwareag.adabas`; `actian.ingres`||
28
28
29
-
**[1]`db.collection.name`:** It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization.
29
+
**[1]`db.collection.name`:** It is RECOMMENDED to capture the value as provided by the application
30
+
without attempting to do any case normalization.
30
31
31
32
The collection name SHOULD NOT be extracted from `db.query.text`,
32
-
unless the query format is known to only ever have a single collection name present.
33
+
when the database system supports cross-table queries in non-batch operations.
33
34
34
-
For batch operations, if the individual operations are known to have the same collection name
35
-
then that collection name SHOULD be used.
35
+
For batch operations, if the individual operations are known to have the same
36
+
collection name then that collection name SHOULD be used.
36
37
37
38
**[2]`db.namespace`:** 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.
38
39
Semantic conventions for individual database systems SHOULD document what `db.namespace` means in the context of that system.
@@ -44,7 +45,7 @@ It is RECOMMENDED to capture the value as provided by the application without at
44
45
without attempting to do any case normalization.
45
46
46
47
The operation name SHOULD NOT be extracted from `db.query.text`,
47
-
unless the query format is known to only ever have a single operation name present.
48
+
when the database system supports cross-table queries in non-batch operations.
48
49
49
50
For batch operations, if the individual operations are known to have the same operation name
50
51
then that operation name SHOULD be used prepended by `BATCH `,
Copy file name to clipboardexpand all lines: docs/database/cassandra.md
+5-7
Original file line number
Diff line number
Diff line change
@@ -53,15 +53,13 @@ The following table outlines the span attributes applicable to Cassandra.
53
53
|[`server.address`](/docs/attributes-registry/server.md)| string | Name of the database host. [17]|`example.com`; `10.1.2.80`; `/tmp/my.sock`|`Recommended`||
54
54
|[`db.operation.parameter.<key>`](/docs/attributes-registry/db.md)| string | A database operation parameter, with `<key>` being the parameter name, and the attribute value being a string representation of the parameter value. [18]|`someval`; `55`|`Opt-In`||
55
55
56
-
**[1]`db.collection.name`:** It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization.
57
-
58
-
The collection name SHOULD NOT be extracted from `db.query.text`,
59
-
unless the query format is known to only ever have a single collection name present.
56
+
**[1]`db.collection.name`:** It is RECOMMENDED to capture the value as provided by the application
57
+
without attempting to do any case normalization.
60
58
61
59
For batch operations, if the individual operations are known to have the same collection name
62
60
then that collection name SHOULD be used.
63
61
64
-
**[2]`db.collection.name`:** If readily available and if a database call is performed on a single collection. The collection name MAY be parsed from the query text, in which case it SHOULD be the single collection name in the query.
62
+
**[2]`db.collection.name`:** If readily available and if a database call is performed on a single collection.
65
63
66
64
**[3]`db.namespace`:** 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.
67
65
Semantic conventions for individual database systems SHOULD document what `db.namespace` means in the context of that system.
@@ -71,14 +69,14 @@ It is RECOMMENDED to capture the value as provided by the application without at
71
69
without attempting to do any case normalization.
72
70
73
71
The operation name SHOULD NOT be extracted from `db.query.text`,
74
-
unless the query format is known to only ever have a single operation name present.
72
+
when the database system supports cross-table queries in non-batch operations.
75
73
76
74
For batch operations, if the individual operations are known to have the same operation name
77
75
then that operation name SHOULD be used prepended by `BATCH `,
78
76
otherwise `db.operation.name` SHOULD be `BATCH` or some other database
79
77
system specific term if more applicable.
80
78
81
-
**[5]`db.operation.name`:** If readily available and if there is a single operation name that describes the database call. The operation name MAY be parsed from the query text, in which case it SHOULD be the single operation name found in the query.
79
+
**[5]`db.operation.name`:** If readily available and if there is a single operation name that describes the database call.
82
80
83
81
**[6]`db.response.status_code`:** All Cassandra protocol error codes SHOULD be considered errors.
Copy file name to clipboardexpand all lines: docs/database/cosmosdb.md
+15-23
Original file line number
Diff line number
Diff line change
@@ -193,7 +193,7 @@ If none of them applies, it's RECOMMENDED to use language-agnostic representatio
193
193
client method name in snake_case. Instrumentations SHOULD document
194
194
additional values when introducing new operations.
195
195
196
-
**[5]`db.operation.name`:** If readily available and if there is a single operation name that describes the database call. The operation name MAY be parsed from the query text, in which case it SHOULD be the single operation name found in the query.
196
+
**[5]`db.operation.name`:** If readily available and if there is a single operation name that describes the database call.
197
197
198
198
**[6]`db.response.status_code`:** Response codes in the 4xx and 5xx range SHOULD be considered errors.
|[`azure.cosmosdb.response.sub_status_code`](/docs/attributes-registry/azure.md)| int | Cosmos DB sub status code. |`1000`; `1002`|`Conditionally Required` when response was received and contained sub-code. ||
346
346
|[`db.collection.name`](/docs/attributes-registry/db.md)| string | Cosmos DB container name. [1]|`public.users`; `customers`|`Conditionally Required` If available. ||
347
347
|[`db.namespace`](/docs/attributes-registry/db.md)| string | The name of the database, fully qualified within the server address and port. |`customers`; `test.users`|`Conditionally Required` If available. ||
348
-
|[`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]||
|[`error.type`](/docs/attributes-registry/error.md)| string | Describes a class of error the operation ended with. [6]|`timeout`; `java.net.UnknownHostException`; `server_certificate_invalid`; `500`|`Conditionally Required` If and only if the operation failed. ||
351
-
|[`server.port`](/docs/attributes-registry/server.md)| int | Server port number. [7]|`80`; `8080`; `443`|`Conditionally Required`[8]||
352
-
|[`azure.cosmosdb.operation.contacted_regions`](/docs/attributes-registry/azure.md)| string[]| List of regions contacted during operation in the order that they were contacted. If there is more than one region listed, it indicates that the operation was performed on multiple regions i.e. cross-regional call. [9]|`["North Central US", "Australia East", "Australia Southeast"]`|`Recommended` If available ||
353
-
|[`server.address`](/docs/attributes-registry/server.md)| string | Name of the database host. [10]|`example.com`; `10.1.2.80`; `/tmp/my.sock`|`Recommended`||
348
+
|[`db.operation.name`](/docs/attributes-registry/db.md)| string | The name of the operation or command being executed. [2]|`findAndModify`; `HMSET`; `SELECT`|`Conditionally Required`If readily available.||
|[`error.type`](/docs/attributes-registry/error.md)| string | Describes a class of error the operation ended with. [5]|`timeout`; `java.net.UnknownHostException`; `server_certificate_invalid`; `500`|`Conditionally Required` If and only if the operation failed. ||
351
+
|[`server.port`](/docs/attributes-registry/server.md)| int | Server port number. [6]|`80`; `8080`; `443`|`Conditionally Required`[7]||
352
+
|[`azure.cosmosdb.operation.contacted_regions`](/docs/attributes-registry/azure.md)| string[]| List of regions contacted during operation in the order that they were contacted. If there is more than one region listed, it indicates that the operation was performed on multiple regions i.e. cross-regional call. [8]|`["North Central US", "Australia East", "Australia Southeast"]`|`Recommended` If available ||
353
+
|[`server.address`](/docs/attributes-registry/server.md)| string | Name of the database host. [9]|`example.com`; `10.1.2.80`; `/tmp/my.sock`|`Recommended`||
354
354
355
355
**[1]`db.collection.name`:** It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization.
356
356
357
-
The collection name SHOULD NOT be extracted from `db.query.text`,
358
-
unless the query format is known to only ever have a single collection name present.
359
-
360
-
For batch operations, if the individual operations are known to have the same collection name
361
-
then that collection name SHOULD be used.
362
-
363
357
**[2]`db.operation.name`:** It is RECOMMENDED to capture the value as provided by the application
364
358
without attempting to do any case normalization.
365
359
366
360
The operation name SHOULD NOT be extracted from `db.query.text`,
367
-
unless the query format is known to only ever have a single operation name present.
361
+
when the database system supports cross-table queries in non-batch operations.
368
362
369
363
For batch operations, if the individual operations are known to have the same operation name
370
364
then that operation name SHOULD be used prepended by `BATCH `,
371
365
otherwise `db.operation.name` SHOULD be `BATCH` or some other database
372
366
system specific term if more applicable.
373
367
374
-
**[3]`db.operation.name`:** If readily available and if there is a single operation name that describes the database call. The operation name MAY be parsed from the query text, in which case it SHOULD be the single operation name found in the query.
375
-
376
-
**[4]`db.response.status_code`:** 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.
368
+
**[3]`db.response.status_code`:** 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.
377
369
Semantic conventions for individual database systems SHOULD document what `db.response.status_code` means in the context of that system.
378
370
379
-
**[5]`db.response.status_code`:** If the operation failed and status code is available.
371
+
**[4]`db.response.status_code`:** If the operation failed and status code is available.
380
372
381
-
**[6]`error.type`:** 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.
373
+
**[5]`error.type`:** 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.
382
374
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.
383
375
Instrumentations SHOULD document how `error.type` is populated.
384
376
385
-
**[7]`server.port`:** When observed from the client side, and when communicating through an intermediary, `server.port` SHOULD represent the server port behind any intermediaries, for example proxies, if it's available.
377
+
**[6]`server.port`:** When observed from the client side, and when communicating through an intermediary, `server.port` SHOULD represent the server port behind any intermediaries, for example proxies, if it's available.
386
378
387
-
**[8]`server.port`:** If using a port other than the default port for this DBMS and if `server.address` is set.
379
+
**[7]`server.port`:** If using a port other than the default port for this DBMS and if `server.address` is set.
388
380
389
-
**[9]`azure.cosmosdb.operation.contacted_regions`:** Region name matches the format of `displayName` in [Azure Location API](https://learn.microsoft.com/rest/api/subscription/subscriptions/list-locations?view=rest-subscription-2021-10-01&tabs=HTTP#location)
381
+
**[8]`azure.cosmosdb.operation.contacted_regions`:** Region name matches the format of `displayName` in [Azure Location API](https://learn.microsoft.com/rest/api/subscription/subscriptions/list-locations?view=rest-subscription-2021-10-01&tabs=HTTP#location)
390
382
391
-
**[10]`server.address`:** When observed from the client side, and when communicating through an intermediary, `server.address` SHOULD represent the server address behind any intermediaries, for example proxies, if it's available.
383
+
**[9]`server.address`:** When observed from the client side, and when communicating through an intermediary, `server.address` SHOULD represent the server address behind any intermediaries, for example proxies, if it's available.
0 commit comments