pub const DB_CLIENT_OPERATION_DURATION: &str = "db.client.operation.duration";
Expand description
§Description
Duration of database client operations.
§Notes
Batch operations SHOULD be recorded as a single operation
§Metadata
Instrument: | histogram |
Unit: | s |
Status: | Release_candidate |
§Attributes
Name | Requirement |
---|---|
crate::attribute::DB_COLLECTION_NAME | Conditionally_required : 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. |
crate::attribute::DB_NAMESPACE | Conditionally_required : If available. |
crate::attribute::DB_OPERATION_NAME | Conditionally_required : 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. |
crate::attribute::DB_QUERY_SUMMARY | {"recommended": "if readily available or if instrumentation supports query summarization."} |
crate::attribute::DB_QUERY_TEXT | Opt_in |
crate::attribute::DB_RESPONSE_STATUS_CODE | Conditionally_required : If the operation failed and status code is available. |
crate::attribute::DB_SYSTEM_NAME | Required |
crate::attribute::ERROR_TYPE | Conditionally_required : If and only if the operation failed. |
crate::attribute::NETWORK_PEER_ADDRESS | {"recommended": "if applicable for this database system."} |
crate::attribute::NETWORK_PEER_PORT | {"recommended": "if and only if network.peer.address is set."} |
crate::attribute::SERVER_ADDRESS | Recommended |
crate::attribute::SERVER_PORT | Conditionally_required : If using a port other than the default port for this DBMS and if server.address is set. |