Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/db/cassandra.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ in non-batch operations.
If spaces can occur in the operation name, multiple consecutive spaces
SHOULD be normalized to a single space.

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 `,
For batch operations, when the individual operation names are known to be the same
(without extracting them from `db.query.text`; see above),
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.

Expand Down
5 changes: 3 additions & 2 deletions docs/db/cosmosdb.md
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,9 @@ in non-batch operations.
If spaces can occur in the operation name, multiple consecutive spaces
SHOULD be normalized to a single space.

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 `,
For batch operations, when the individual operation names are known to be the same
(without extracting them from `db.query.text`; see above),
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.

Expand Down
20 changes: 12 additions & 8 deletions docs/db/database-metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ The collection name SHOULD NOT be extracted from `db.query.text`,
when the database system supports query text with multiple collections
in non-batch operations.

For batch operations, if the individual operations are known to have the same
collection name then that collection name SHOULD be used.
For batch operations, when the individual collection names are known to be the same
(without extracting them from `db.query.text`; see above),
that collection name SHOULD be used.

**[4] `db.namespace`:** If a database system has multiple namespace components, they SHOULD be concatenated from the most general to the most specific namespace component, using `|` as a separator between the components. Any missing components (and their associated separators) SHOULD be omitted.
Semantic conventions for individual database systems SHOULD document what `db.namespace` means in the context of that system.
Expand All @@ -123,8 +124,9 @@ in non-batch operations.
If spaces can occur in the operation name, multiple consecutive spaces
SHOULD be normalized to a single space.

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 `,
For batch operations, when the individual operation names are known to be the same
(without extracting them from `db.query.text`; see above),
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.

Expand Down Expand Up @@ -293,8 +295,9 @@ The collection name SHOULD NOT be extracted from `db.query.text`,
when the database system supports query text with multiple collections
in non-batch operations.

For batch operations, if the individual operations are known to have the same
collection name then that collection name SHOULD be used.
For batch operations, when the individual collection names are known to be the same
(without extracting them from `db.query.text`; see above),
that collection name SHOULD be used.

**[4] `db.namespace`:** If a database system has multiple namespace components, they SHOULD be concatenated from the most general to the most specific namespace component, using `|` as a separator between the components. Any missing components (and their associated separators) SHOULD be omitted.
Semantic conventions for individual database systems SHOULD document what `db.namespace` means in the context of that system.
Expand All @@ -312,8 +315,9 @@ in non-batch operations.
If spaces can occur in the operation name, multiple consecutive spaces
SHOULD be normalized to a single space.

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 `,
For batch operations, when the individual operation names are known to be the same
(without extracting them from `db.query.text`; see above),
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.

Expand Down
10 changes: 6 additions & 4 deletions docs/db/database-spans.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,9 @@ The collection name SHOULD NOT be extracted from `db.query.text`,
when the database system supports query text with multiple collections
in non-batch operations.

For batch operations, if the individual operations are known to have the same
collection name then that collection name SHOULD be used.
For batch operations, when the individual collection names are known to be the same
(without extracting them from `db.query.text`; see above),
that collection name SHOULD be used.

**[4] `db.namespace`:** If a database system has multiple namespace components, they SHOULD be concatenated from the most general to the most specific namespace component, using `|` as a separator between the components. Any missing components (and their associated separators) SHOULD be omitted.
Semantic conventions for individual database systems SHOULD document what `db.namespace` means in the context of that system.
Expand All @@ -160,8 +161,9 @@ in non-batch operations.
If spaces can occur in the operation name, multiple consecutive spaces
SHOULD be normalized to a single space.

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 `,
For batch operations, when the individual operation names are known to be the same
(without extracting them from `db.query.text`; see above),
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.

Expand Down
10 changes: 6 additions & 4 deletions docs/registry/attributes/db.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ The collection name SHOULD NOT be extracted from `db.query.text`,
when the database system supports query text with multiple collections
in non-batch operations.

For batch operations, if the individual operations are known to have the same
collection name then that collection name SHOULD be used.
For batch operations, when the individual collection names are known to be the same
(without extracting them from `db.query.text`; see above),
that collection name SHOULD be used.

**[2] `db.namespace`:** If a database system has multiple namespace components, they SHOULD be concatenated from the most general to the most specific namespace component, using `|` as a separator between the components. Any missing components (and their associated separators) SHOULD be omitted.
Semantic conventions for individual database systems SHOULD document what `db.namespace` means in the context of that system.
Expand Down Expand Up @@ -77,8 +78,9 @@ in non-batch operations.
If spaces can occur in the operation name, multiple consecutive spaces
SHOULD be normalized to a single space.

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 `,
For batch operations, when the individual operation names are known to be the same
(without extracting them from `db.query.text`; see above),
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.

Expand Down
10 changes: 6 additions & 4 deletions model/db/registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ groups:
when the database system supports query text with multiple collections
in non-batch operations.

For batch operations, if the individual operations are known to have the same
collection name then that collection name SHOULD be used.
For batch operations, when the individual collection names are known to be the same
(without extracting them from `db.query.text`; see above),
that collection name SHOULD be used.
examples: ["public.users", "customers"]
- id: db.namespace
type: string
Expand Down Expand Up @@ -52,8 +53,9 @@ groups:
If spaces can occur in the operation name, multiple consecutive spaces
SHOULD be normalized to a single space.

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 `,
For batch operations, when the individual operation names are known to be the same
(without extracting them from `db.query.text`; see above),
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.
examples: ["findAndModify", "HMSET", "SELECT"]
Expand Down
Loading