semantic-conventions/model/db-common.yaml

24 lines
1.0 KiB
YAML

groups:
- id: attributes.db.client.minimal
type: attribute_group
brief: 'Database Client attributes'
attributes:
- ref: db.operation.name
requirement_level:
conditionally_required: >
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.
- ref: server.address
brief: >
Name of the database host.
- ref: server.port
requirement_level:
conditionally_required: If using a port other than the default port for this DBMS and if `server.address` is set.
- ref: error.type
requirement_level:
conditionally_required: If and only if the operation failed.
note: >
The `error.type` SHOULD match the error code returned by the database or the client library,
the canonical name of exception that occurred, or another low-cardinality error identifier.
Instrumentations SHOULD document the list of errors they report.