pub const DB_CLIENT_OPERATION_DURATION: &str = "db.client.operation.duration";
Expand description
§Description
Duration of database client operations.
§Metadata
Instrument: | histogram |
Unit: | s |
Status: | Experimental |
§Attributes
Name | Requirement |
---|---|
crate::attribute::DB_SYSTEM | Required |
crate::attribute::DB_COLLECTION_NAME | Conditionally required : If readily available. Otherwise, if the instrumentation library parses db.query.text to capture db.collection.name , then it SHOULD be the first collection name found in the query. |
crate::attribute::DB_NAMESPACE | Conditionally required : If available. |
crate::attribute::DB_OPERATION_NAME | Conditionally required : If readily available. Otherwise, if the instrumentation library parses db.query.text to capture db.operation.name , then it SHOULD be the first operation name found in the query. |
crate::attribute::ERROR_TYPE | Conditionally required : If and only if the operation failed. |
crate::attribute::SERVER_PORT | Conditionally required : If using a port other than the default port for this DBMS and if server.address is set. |
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 | Unspecified |