Constant DB_OPERATION_NAME

Source
pub const DB_OPERATION_NAME: &str = "db.operation.name";
Expand description

The name of the operation or command being executed.

§Notes

It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization.

The operation name SHOULD NOT be extracted from db.query.text, when the database system supports query text with multiple operations 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 , otherwise db.operation.name SHOULD be BATCH or some other database system specific term if more applicable.

§Examples

  • "findAndModify"
  • "HMSET"
  • "SELECT"