Skip to content

Commit c5f3098

Browse files
committed
build
1 parent 23f8f02 commit c5f3098

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

semantic_conventions/trace/database.yaml

+23-21
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ groups:
88
- id: system
99
tag: connection-level
1010
brief: An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers.
11-
requirement_level: required
11+
required: always
1212
type:
1313
allow_custom_values: true
1414
members:
@@ -175,8 +175,8 @@ groups:
175175
- id: name
176176
tag: call-level
177177
type: string
178-
requirement_level:
179-
conditionally_required: If applicable.
178+
required:
179+
conditional: Required, if applicable.
180180
brief: >
181181
This attribute is used to report the name of the database being accessed.
182182
For commands that switch the database, this should be set to the target database
@@ -190,18 +190,18 @@ groups:
190190
- id: statement
191191
tag: call-level
192192
type: string
193-
requirement_level:
194-
conditionally_required: >
195-
If applicable and not explicitly disabled via instrumentation configuration.
193+
required:
194+
conditional: >
195+
Required if applicable and not explicitly disabled via instrumentation configuration.
196196
brief: >
197197
The database statement being executed.
198198
note: The value may be sanitized to exclude sensitive information.
199199
examples: ['SELECT * FROM wuser_table', 'SET mykey "WuValue"']
200200
- id: operation
201201
tag: call-level
202202
type: string
203-
requirement_level:
204-
conditionally_required: If `db.statement` is not applicable.
203+
required:
204+
conditional: Required, if `db.statement` is not applicable.
205205
brief: >
206206
The name of the operation being executed, e.g. the [MongoDB command name](https://docs.mongodb.com/manual/reference/command/#database-operations)
207207
such as `findAndModify`, or the SQL keyword.
@@ -215,20 +215,20 @@ groups:
215215
examples: ['findAndModify', 'HMSET', 'SELECT']
216216
- ref: net.peer.name
217217
tag: connection-level
218-
requirement_level:
219-
conditionally_required: See below.
218+
required:
219+
conditional: See below.
220220
- ref: net.peer.ip
221221
tag: connection-level
222-
requirement_level:
223-
conditionally_required: See below.
222+
required:
223+
conditional: See below.
224224
- ref: net.peer.port
225225
tag: connection-level
226-
requirement_level:
227-
conditionally_required: If using a port other than the default port for this DBMS.
226+
required:
227+
conditional: Required if using a port other than the default port for this DBMS.
228228
- ref: net.transport
229229
tag: connection-level
230-
requirement_level:
231-
conditionally_required: If database type is in-process (`"inproc"`), recommended for other database types.
230+
required:
231+
conditional: Recommended in general, required for in-process databases (`"inproc"`).
232232
constraints:
233233
- any_of:
234234
- 'net.peer.name'
@@ -294,7 +294,8 @@ groups:
294294
- id: table
295295
type: string
296296
tag: call-level-tech-specific-cassandra
297-
requirement_level: recommended
297+
required:
298+
conditional: Recommended if available.
298299
brief: The name of the primary table that the operation is acting upon, including the keyspace name (if applicable).
299300
note: >
300301
This mirrors the db.sql.table attribute but references cassandra rather than sql.
@@ -336,8 +337,8 @@ groups:
336337
attributes:
337338
- id: database_index
338339
type: int
339-
requirement_level:
340-
conditionally_required: If other than the default database (`0`).
340+
required:
341+
conditional: Required, if other than the default database (`0`).
341342
tag: call-level-tech-specific
342343
brief: >
343344
The index of the database being accessed as used in the [`SELECT` command](https://redis.io/commands/select), provided as an integer.
@@ -352,7 +353,7 @@ groups:
352353
attributes:
353354
- id: collection
354355
type: string
355-
requirement_level: required
356+
required: always
356357
tag: call-level-tech-specific
357358
brief: >
358359
The collection being accessed within the database stated in `db.name`.
@@ -367,7 +368,8 @@ groups:
367368
- id: table
368369
tag: call-level-tech-specific
369370
type: string
370-
requirement_level: recommended
371+
required:
372+
conditional: Recommended if available.
371373
brief: The name of the primary table that the operation is acting upon, including the database name (if applicable).
372374
note: >
373375
It is not recommended to attempt any client-side parsing of

specification/trace/semantic_conventions/messaging.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ For Apache Kafka, the following additional attributes are defined:
215215

216216
**[1]:** If the key type is not string, it's string representation has to be supplied for the attribute. If the key has no unambiguous, canonical string form, don't include its value.
217217

218-
**[2]:** If value is `true`. When missing, the value is assumed to be `false``.
218+
**[2]:** If value is `true`. When missing, the value is assumed to be `false`.
219219
<!-- endsemconv -->
220220

221221
For Apache Kafka producers, [`peer.service`](./span-general.md#general-remote-service-attributes) SHOULD be set to the name of the broker or service the message will be sent to.

0 commit comments

Comments
 (0)